-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
59 lines (58 loc) · 2.18 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
# ui.R --------------------------------------------------------------------
#
# Define the user interface of the app.
#
# Heart Disease Data Portal v 1.0 - Pushing to GitHub
dashboardPage(
title = 'KPSC-RAND Heart Disease Data Portal',
dashboardHeader(title = HTML("<div style='float: left;'>KPSC-RAND Heart Disease Data Portal<div>"), titleWidth = "100%"),
## Sidebar content
dashboardSidebar(
tags$head(tags$style(type='text/css', ".slider-animate-button { float: left; font-size: 15pt; margin-top: 3px !important; } .sidebar .irs-min, .sidebar .irs-max {color: #fff !important;}")),
width = 340,
htmlOutput("sidebar_note1"),
uiOutput("ageControls"),
uiOutput("genderControls"),
uiOutput("raceControls"),
htmlOutput("sidebar_note2"),
htmlOutput("sidebar_note3"),
uiOutput("yearControls"),
htmlOutput("sidebar_footnote")
),
## Body content
dashboardBody(
tags$head(tags$style(includeCSS("www/HDDP.css"))),
useShinyjs(),
extendShinyjs(script='defineGlobals.js', functions="defineGlobals"),
extendShinyjs(script='changeColors.js', functions='changeColors'),
extendShinyjs(script='changeYear.js', functions="changeYear"),
extendShinyjs(script='displayRates.js', functions="displayRates"),
tabsetPanel(
tabPanel("Map",
fluidRow(
fillPage(
tags$style(type = "text/css", "#map {height: calc(100vh - 98px) !important;} #geoSelect {height: calc(100vh - 100px) !important;}"),
fillRow(leafletOutput('map', width="100%", height="100%")
)
)
)
),
tabPanel("Time-Series Plots",
fluidRow(
fillPage(
tags$style(type = "text/css", "#timeSeriesPlots {height: calc(100vh - 100px) !important;}"),
plotOutput("timeSeriesPlots", height = "100%"))
)
),
tabPanel("About",
fluidRow(
column(width=5,
htmlOutput("about_note1"),
htmlOutput("about_note2"),
htmlOutput("about_note3")
)
)
)
)
)
)