wordcloud | R Documentation |
Create a word cloud.
wordcloud(formula, data, max.words = 100, color = "black")
data |
data frame. The data where the variables can be found. |
max.words |
argument. An argument to designate a different max number of words to plot in the word cloud (default is 100). |
color |
argument. An argument to designate the color of the word cloud. |
x |
|
For additional options for creating word clouds, look at the help file found in the wordcloud
package or run help(wordcloud, package="wordcloud")
in the console. ALSO: note in the examples that data must be formatted a particular way in order to use the wordcloud function.
data(pride)
pride <- tally(~word, data = pride, format = "data.frame")
wordcloud(Freq ~ word, data = pride)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.