mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-02 02:34:57 -05:00
25 lines
527 B
R
25 lines
527 B
R
library(shiny)
|
|
|
|
# Define UI for application that plots random distributions
|
|
shinyUI(fluidPage(
|
|
|
|
# Application title
|
|
titlePanel("Hello Shiny!"),
|
|
|
|
# Sidebar with a slider input for number of observations
|
|
sidebarLayout(
|
|
sidebarPanel(
|
|
sliderInput("obs",
|
|
"Number of observations:",
|
|
min = 1,
|
|
max = 1000,
|
|
value = 500)
|
|
),
|
|
|
|
# Show a plot of the generated distribution
|
|
mainPanel(
|
|
plotOutput("distPlot")
|
|
)
|
|
)
|
|
))
|