forked from simrnsethi/Risk-predictor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
65 lines (61 loc) · 3.15 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
60
61
62
63
64
65
# UI file for shiny
library(plotly)
shinyUI(dashboardPage( skin = "blue",
#Application title
dashboardHeader(title = "Online Sex-Work Risk Predictor",titleWidth = 450),
# dashboard sidebar functions will be inserted here
dashboardSidebar(
sidebarMenu(
menuItem("Predict",tabName = "predict",icon = icon("bar-chart-o")),
# menuItem("Plot",tabName = "plot",icon = icon("dashboard")),
menuItem("Data",tabName = "data",icon = icon("table")),
menuItem("Info",tabName = "info",icon = icon("info-circle"))
),
sliderInput("age",
label = "Age range:",
min = 18,
max = 87,
step = 1,
value = c(18,34),
sep = ""),
sliderInput("last-login",
label = "Last login: number of days ago",
min = 1,
max = 2402,
step = 1,
value = c(1,2402),
sep = ""),
uiOutput("typeSelectOutput")
),
# functions that must go in the body of the dashboard.
dashboardBody(
tabItems(
tabItem(tabName = "predict",
plotOutput("thePlot"),
downloadButton("download1", "Download predictions"),
hr(),
br(),
br(),
DT::dataTableOutput("prediction"),
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "custom.css")
)
),
# tabItem(tabName = "plot",
# plotOutput("thePlot"),
# br()
#
# ),
tabItem(tabName = "data",
DT::dataTableOutput("gendata"),
downloadButton("download2", "Download generated data"),
hr()
),
tabItem(tabName = "info",
includeMarkdown("info.md"),
hr()
)
)
)
)
)