forked from uc-bd2k/grtutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
59 lines (57 loc) · 1.94 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
library(shiny)
library(shinyLi)
library(markdown)
shinyUI(
fluidPage(
# adding head section to html with links to CSS files
tags$head(tags$link(href="css/ilincs.css", rel="stylesheet"),
tags$link(href="css/AboutGRMetrics.css", rel="stylesheet")),
# displaying header
includeHTML("www/html/nav.html"),
titlePanel("General Information"),
hr(),
column(
12,
tabsetPanel(
id="tabs",
tabPanel(
value="Introduction",
"Introduction",
includeHTML("www/AboutGRMetrics-Introduction.html")
),
tabPanel(
value="AboutTraditional",
"About traditional metrics",
includeHTML("www/AboutTraditional.html")
),
tabPanel(
value="AboutGR",
"About GR metrics",
includeMarkdown("www/AboutGR_md.md")
),
tabPanel(
value="Exploration",
"Exploration tool",
includeHTML("www/Exploration-top.html"),
fluidRow(
liDoseResponseCurves(anchorId="dose-response-curves-main"),
width=8
),
includeMarkdown("www/Exploration-bottomMD.Md"),
tags$script(src='d3.min.js'),
tags$script(src='d3-legend.min.js')
),
tabPanel(
value="GRCalculator",
"Online GR calculator",
includeHTML("www/GRCalculator.html")
),
tabPanel(
value="Authors",
"Authors",
includeHTML("www/Authors.html")
)
)
)
)
)