mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-10 14:45:12 -05:00
33 lines
734 B
R
33 lines
734 B
R
library(shiny)
|
|
|
|
shinyUI(
|
|
pageWithSidebar(
|
|
|
|
headerPanel(
|
|
h1("Tabsets")
|
|
),
|
|
|
|
sidebarPanel(
|
|
selectInput("dist", "Distribution type:",
|
|
list("Normal" = "norm",
|
|
"Uniform" = "unif",
|
|
"Log-normal" = "lnorm",
|
|
"Exponential" = "exp")),
|
|
|
|
sliderInput("n",
|
|
"Number of observations:",
|
|
value = 500,
|
|
min = 1,
|
|
max = 1000)
|
|
),
|
|
|
|
mainPanel(
|
|
tabsetPanel(
|
|
tabPanel("Plot", plotOutput("plot")),
|
|
tabPanel("Summary", verbatimTextOutput("summary")),
|
|
tabPanel("Table", tableOutput("table"))
|
|
)
|
|
)
|
|
)
|
|
)
|