-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
35 lines (28 loc) · 1.03 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
####################
##### Shiny UI #####
####################
shinyUI(pageWithSidebar(
# Application title.
headerPanel(""),
sidebarPanel(
uiOutput("choose_patient"),
div(style="display:inline-block", actionButton("renew_list", "Renew List")),
div(style="display:inline-block", actionButton("plotSurv", "Plot Survivl Curves")),
br(),
uiOutput("time_slider"),
div(style="display:inline-block", actionButton("varSelect", "Find Best Moedel")),
div(style="display:inline-block", actionButton("plotHazard", "Plot Fitted Cumulative Hazards"))
),
mainPanel(
tabsetPanel(
tabPanel("Hazard Predicted", plotOutput("haz_predicted")),
tabPanel("Survival", plotOutput("plot_predicted")),
tabPanel("Model Summary", verbatimTextOutput("summary")),
tabPanel("Data", tableOutput("raw_data")),
tabPanel("Best Model", tableOutput("best_model")),
tabPanel("Hazard Fitted",htmlOutput("haz_fitted")),
tabPanel("Test",textOutput("test")),
id = "tabs"
)
)
))