-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
132 lines (132 loc) · 3.61 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
fluidPage(
tags$head(
tags$link(rel = "stylesheet", href = "styles.css")
),
fluidRow(
column(
12,
div(
style = "display: inline",
h1("Veteran Survival Analysis"),
h3(
class = "text-center",
textOutput("formula_string_out")
)),
br()
)
),
fluidRow(
div(
class = "col-lg-2 col-sm-3",
br(),
wellPanel(
br(),
shinyWidgets::pickerInput(
inputId = "predictor_var",
label = "Strata",
choices = predictor_var_choices,
options = list(`actions-box` = TRUE),
multiple = TRUE,
selected = predictor_var_choices[1:2],
width = "100%"
),
br(),
downloadButton(
"download_data",
"Veteran Data",
icon = icon("download"),
class = "full_width"
),
br()
)
),
div(
class = "col-lg-10 col-sm-9",
tabsetPanel(
tabPanel(
title = "Chart",
br(),
br(),
fluidRow(
column(
11,
plotOutput(
"predictor_chart_out",
height = "600px"
) %>% shinycssloaders::withSpinner()
),
column(
1,
dropdownButton(
circle = FALSE,
status = "white_background",
size = "lg",
icon = icon("gear"),
width = "300px",
right = TRUE,
tooltip = tooltipOptions(
placement = "bottom",
title = "Chart Options",
html = FALSE
),
div(
class = "text-center",
tags$h3("Chart Options"),
br(),
radioButtons(
"show_cl",
"Show Confidence Interval",
choices = c(
"Yes",
"No"
),
selected = "No",
inline = TRUE
),
br(),
downloadButton(
"download_chart",
"Download Chart",
class = "full_width"
),
br(),
br()
)
)
)
)
),
tabPanel(
title = "Table",
br(),
br(),
DTOutput("fit_table_out") %>% shinycssloaders::withSpinner()
),
tabPanel(
title = "Analysis Detail",
br(),
br(),
column(1),
column(
10,
tags$a(
href="https://github.com/Tychobra/veteran_survival",
h3("Link to GitHub Repo")
),
br(),
h3(
style = "line-height: 1.5;",
paste0(
"This is a simple survival analysis using of the 'verteran' data set available with the survival package. ",
"Several of the predictor varibales in verteran are discretized before being used in the model fit. You ",
"can see how the discretization is perfomed in 'Global.R'. Some exploratory data analysis is available ",
"in 'data_prep/data-analysis.R'. Better detail and more info would be provided for any actual analysis. I ",
"often include .Rmd reports in Shiny apps which can be downloaded to html or pdf..."
)
)
)
)
)
)
)
)