Skip to content

Instantly share code, notes, and snippets.

@kxzk
Created October 18, 2017 16:53
Show Gist options
  • Save kxzk/3d3e1afa24cc67a9b67e4dda66d74eaa to your computer and use it in GitHub Desktop.
Save kxzk/3d3e1afa24cc67a9b67e4dda66d74eaa to your computer and use it in GitHub Desktop.
# contents of app.R
library(shiny)
ui <- fluidPage(
# our title
titlePanel('Wordcloud Web App'),
# defining the sidebar
sidebarLayout(
# setting up our sidebar
sidebarPanel(
# our first slider
sliderInput('ngramCount', '# of Grams', min = 1, max = 5, value = 2),
hr(),
# second slider
sliderInput('cloudCount', '# of Words', min = 50, max = 400, value = 100),
# setting up main panel
mainPanel(
# defining where our cloud will appear
plotOutput('wordcloud')
)
)
)
server <- function(input, output) {
}
shinyApp(ui, server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment