-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
162 lines (158 loc) · 3.4 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
source("helpers.R")
# Define UI for application that draws a histogram
sidebar <- dashboardSidebar(
tags$style(
type = "text/css",
"#black_labels {color: black}"
),
disable = FALSE,
width = 300,
br(),
div(
id = "black_labels",
box(
title = "Data",
width = 12,
collapsed = FALSE,
collapsible = TRUE,
solidHeader = FALSE,
selectInput(
"operationalisation",
"Operationalisation",
operationalisation_choices,
multiple = FALSE,
selected = "hrqol_at_eof"
),
selectInput(
"start_of_followup",
"Start of follow-up",
start_of_followup_choices,
multiple = FALSE,
selected = "primary"
),
selectInput(
"analysis",
"Analaysis",
analysis_choices,
multiple = FALSE,
selected = "all"
),
selectInput(
"y_var",
"Performance metric",
performance_metrics_choices,
multiple = FALSE,
selected = "rejection_proportion"
),
selectInput(
"shape_var",
"Shape variable",
shape_colour_choices,
multiple = FALSE,
selected = "final_hrqol"
),
selectInput(
"colour_var",
"Colouring variable",
shape_colour_choices,
multiple = FALSE,
selected = "n_patients_per_arm"
)
),
box(
title = "Filtering",
width = 12,
collapsed = TRUE,
collapsible = TRUE,
solidHeader = TRUE,
checkboxGroupInput(
"filter_mortality",
"Mortality reduction (%)",
selected = c("0", "2.5", "5", "10"),
choices = c("0", "2.5", "5", "10"),
inline = TRUE
),
checkboxGroupInput(
"filter_prop_mortality_benefitters",
"Mortality benefitters (%)",
selected = c("0", "5", "10", "15"),
choices = c("0", "5", "10", "15"),
inline = TRUE
),
checkboxGroupInput(
"filter_acceleration_hrqol",
"Acceleration in HRQoL (%)",
selected = c("0", "2", "5", "10"),
choices = c("0", "2", "5", "10"),
inline = TRUE
),
checkboxGroupInput(
"filter_final_hrqol",
"Improved final HRQoL (%)",
selected = c("0", "10", "20"),
choices = c("0", "10", "20"),
inline = TRUE
),
checkboxGroupInput(
"filter_n_patients_per_arm",
"Patients per arm",
selected = c("100", "500", "1000", "2000"),
choices = c("100", "500", "1000", "2000"),
inline = TRUE
)
),
box(
title = "Apperance",
width = 12,
collapsed = TRUE,
collapsible = TRUE,
solidHeader = TRUE,
numericInput("point_size", "Point size", value = 2, min = 0, step = 0.25),
numericInput("plot_text_size", "Text size", value = 10, min = 1, step = 1),
numericInput(
"strat_label_size",
"Text size for stratitification labels",
value = 9,
min = 1,
step = 1
),
textInput("brewer_style", "ColorBrewer palette (name)", value = "Set1"),
numericInput(
"relative_plot_height",
"Plot height (% of window height)",
value = 90,
min = 0,
step = 5
),
sliderInput(
"plot_bars_ratio",
"Ratio between the two sub-plots",
min = 1,
max = 10,
value = 4,
pre = "1-to-",
step = 1,
ticks = FALSE
)
)
),
br(),
actionButton(
"see_source_code",
"Take me to the source code!",
class = "btn-warning",
icon = icon("brands fa-github"),
onclick ="window.open('https://github.com/epiben/aqua-icu-explorer', '_blank')",
width = "270"
)
)
body <- dashboardBody(
uiOutput("main_panel")
)
ui <- dashboardPage(
dashboardHeader(title = "AQUA-ICU explorer"),
sidebar,
body,
skin = "yellow"
)
ui