Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.27 KB | None | 0 0
  1. ui <- fluidPage(plotOutput("wordsPlot"))
  2.  
  3. server <- function(input, output) {
  4.   output$wordsPlot <- renderPlot({
  5.     reactiveCount() %>%
  6.       head(n=10) %>%
  7.       ggplot() + aes(x=words, y=n) + geom_bar(stat="identity")
  8.   })
  9. }
  10.  
  11. shinyApp(ui = ui, server = server)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement