Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. library(shiny)
  2.  
  3. # Rely on the 'WorldPhones' dataset in the datasets
  4. # package (which generally comes preloaded).
  5. library(nycflights13)
  6.  
  7. # Define a server for the Shiny app
  8. shinyServer(function(input, output) {
  9.  
  10. # Fill in the spot we created for a plot
  11. output$vuelos <- renderPlot({
  12.  
  13. # Render a barplot
  14. barplot(flights[,input$Meses]*1000,
  15. main=input$Meses,
  16. ylab="Número de vuelos",
  17. xlab="Origen")
  18. })
  19. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement