Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. shinyApp(
  2.  
  3. ui = fluidPage(
  4. selectInput("region", "Region:",
  5. choices = colnames(WorldPhones)),
  6. plotOutput("phonePlot", height=270)
  7. ),
  8.  
  9. server = function(input, output) {
  10. output$phonePlot <- renderPlot({
  11. barplot(WorldPhones[,input$region]*1000,
  12. ylab = "Number of Telephones", xlab = "Year")
  13. })
  14. },
  15.  
  16. options = list(height = 345)
  17. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement