forked from ellessenne/hazfun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
31 lines (28 loc) · 842 Bytes
/
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
ui <- shiny::fluidPage(
# Application title
shiny::titlePanel("HazFun: plotting hazard functions"),
# Sidebar with inputs
shiny::sidebarLayout(
shiny::sidebarPanel(
shiny::sliderInput(inputId = "maxt", label = "Max time t:", min = 1, max = 10, value = 5, step = 1),
shiny::selectInput(
inputId = "distribution",
label = "Distribution of the baseline hazard:",
choices = c(
"Exponential" = "exp",
"Weibull" = "wei",
"Inverse Weibull" = "iwei",
"Gompertz" = "gom",
"Log-Normal" = "logn",
"Log-logistic" = "logl",
"Mixture Weibull-Weibull" = "mww"
)
),
shiny::uiOutput(outputId = "pars")
),
# Show a plot of the desired hazard
shiny::mainPanel(
shiny::plotOutput("hazPlot")
)
)
)