Draw a word cloud with a R Shiny app
Below a Shiny app to help you draw a word cloud:
Word clouds are particularly useful as part of text mining analyses. Moreover, it is also useful to analyze string and character variables for any datasets (see the different data types in R).
How to use this app?
- In Word source you can see two examples of word clouds with preloaded texts. If you want to use your own file, choose the option “Upload a file”
- When uploading a file, make sure to upload a .csv or .txt file
- If it is a .csv file, there should be only one column containing all words or sentences (see example files: example.csv and example.txt)
- Choose the language of the text. Stop words in the chosen language will be automatically removed
- Numbers and punctuations will be automatically removed as well, regardless of the language
- You can remove specific words by specifying them after having clicked on “Remove specific words?”. Indicate one word per line
- Change the default options in Maximum number of words and Background color if needed
- If you need to display this word cloud in your analyses, you can simply take a screenshot and include it in your document
Here is the entire code (or see the last version on GitHub) in case you would like to enhance it. See an example on how to use this app after the embedded code.
Note that the link may not work if the app has hit the monthly usage limit. Try again later if that is the case.
Thanks for reading. I hope you will find this app useful to draw word clouds of your texts.
As always, if you have a question or a suggestion related to the topic covered in this article, please add it as a comment so other readers can benefit from the discussion.
Liked this post?Get updates every time a new article is published.
No spam and unsubscribe anytime.