ui.R 618 B

123456789101112131415161718192021222324252627282930
  1. # This is the user-interface definition of a Shiny web application.
  2. # You can find out more about building applications with Shiny here:
  3. #
  4. # http://shiny.rstudio.com
  5. #
  6. library(shiny)
  7. shinyUI(fluidPage(
  8. # Application title
  9. titlePanel("Old Faithful Geyser Data"),
  10. # Sidebar with a slider input for number of bins
  11. sidebarLayout(
  12. sidebarPanel(
  13. sliderInput("bins",
  14. "Number of bins:",
  15. min = 1,
  16. max = 50,
  17. value = 30)
  18. ),
  19. # Show a plot of the generated distribution
  20. mainPanel(
  21. plotOutput("distPlot")
  22. )
  23. )
  24. ))