Created
October 18, 2017 16:53
-
-
Save kxzk/3d3e1afa24cc67a9b67e4dda66d74eaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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