-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
162 lines (161 loc) · 4.7 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
library(shiny)
navbarPage(
"FCDS",
id = "fcds_page",
inverse = TRUE,
theme = "moffitt-cosmo.min.css",
tabPanel(
"Select Cancer Type",
id = "select-cancer-type",
value = "select-cancer-type",
fluidRow(
class = "container col-sm-12 col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1",
tags$h2("Select Cancer Type"),
helpText(
"Choose filters for cancer type below. Remove or delete all groups to select default or all values.",
uiOutput("c_filters_match")
)
),
fluidRow(
class = "container col-sm-12 col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1",
tags$h3("Cancer Site, Grade, and Status"),
column(
width = 4,
select_multiple("c_cancer_site_group", "Site Group", choices = c_opt$cancer_site_group),
helpText("FCDS Site Group")
),
column(
width = 4,
select_multiple("c_cancer_grade", "Grade", choices = c_opt$cancer_grade),
helpText("Grade, Differentiation, or Cell Lineage Indicator")
),
column(
width = 4,
select_multiple("c_cancer_laterality", "Laterality", choices = c_opt$cancer_laterality),
helpText("Laterality at Diagnosis")
)
),
fluidRow(
class = "container col-sm-12 col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1",
tags$h3("Histology, Behavior, and Morphology"),
# cancer_ICDO3_histology, cancer_ICD03_behavior, cancer_ICDO3_morphology
column(
width = 4,
select_multiple("c_cancer_ICDO3_histology", "Histology", choices = c_opt$cancer_ICDO3_histology),
helpText("Histologic Type ICD-O-3")
),
column(
width = 4,
select_multiple("c_cancer_ICDO3_behavior", "Behavior", choices = c_opt$cancer_ICDO3_behavior),
helpText("Behavior Code ICD-O-3")
),
column(
width = 4,
select_multiple("c_cancer_ICDO3_morphology", "Morphology", choices = c_opt$cancer_ICDO3_morphology),
helpText("Morphology Code ICD-O-3 (Type and Behavior)")
)
),
fluidRow(
class = "container col-sm-12 col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1",
tags$h3("Reporting Source and Status"),
# cancer_status, cancer_confirmation, cancer_reporting_source
column(
width = 4,
select_multiple("c_cancer_reporting_source", "Reporting Source", choices = c_opt$cancer_reporting_source),
helpText("Type of Reporting Source")
),
column(
width = 4,
select_single("c_cancer_status", "Status", choice = c_opt$cancer_status),
helpText("Cancer Status at time abstract was completed")
),
column(
width = 4,
select_multiple("c_cancer_confirmation", "Confirmation", choice = c_opt$cancer_confirmation),
helpText("Diagnostic Confirmation at first diagnosis")
)
)
),
tabPanel(
"Explore",
id = "tab-explore",
value = "tab-explore",
fluidRow(
class = "well",
style = "margin-top: -21px;",
column(
width = 2,
offset = 1,
selectInput(
"m_year_group", "Year",
choices = opt_year_group,
selected = "2011-2015"
)
),
column(
width = 2,
selectizeInput(
"m_sex", "Sex",
choices = opt_sex,
multiple = TRUE,
options = list(plugins = list('remove_button'))
)
),
column(
width = 2,
selectizeInput(
"m_race", "Race",
choices = opt_race,
multiple = TRUE,
options = list(plugins = list('remove_button'))
)
),
column(
width = 2,
selectizeInput(
"m_origin", "Hispanic Origin",
choices = opt_origin,
multiple = TRUE,
options = list(plugins = list('remove_button'))
)
),
column(
width = 2,
selectizeInput(
"m_age_group", "Age Group",
choices = opt_age_group,
multiple = TRUE,
options = list(plugins = list('remove_button'))
)
)
),
fluidRow(
tabsetPanel(
tabPanel(
"Map",
tags$head(
tags$style(HTML("#explore_map { height: calc(100vh - 235px) !important; }"))
),
withSpinner(
leafletOutput("explore_map", width = "100%"),
type = 8, color = "#00589A", color.background = "#bec3c3"
)
),
tabPanel(
"Table",
tags$p(),
DT::dataTableOutput("explore_table")
)
)
)
),
navbarMenu(
"More",
tabPanel(
"ICD-O-3",
id = "tab-icdo3",
value = "tab-icdo3",
DT::dataTableOutput("seer_icd_o_3")
)
)
)