-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
48 lines (37 loc) · 1.47 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
library('shiny')
shinyUI(navbarPage(
title = 'Nomogram Title',
windowTitle = 'Nomogram Title',
theme = 'flatly.css',
tabPanel(title = 'Home',
fluidRow(
column(width = 4, offset = 1,
sidebarPanel(width = 12,
h4('Please answer the following questions:'),
uiOutput('prediction_controls')
)
),
column(width = 3,
sidebarPanel(width = 12,
numericInput('pred_at',
label = 'Prediction time point:',
min = 0, value = 365),
actionButton(inputId = 'calc_pred_button',
label = 'Predict Survival Probability',
icon = icon('wrench'), class = 'btn-primary')
)
),
column(width = 3,
mainPanel(width = 12,
tabsetPanel(
tabPanel('Predicted Overall Survival Probability',
h2(textOutput('print_pred')))
)))
)
),
tabPanel(title = 'About',
fluidRow(
column(width = 10, offset = 1,
includeMarkdown('about.md')
)))
))