wordcloud: Word Clouds

View source: R/wordcloud.R

wordcloudR Documentation

Word Clouds

Description

Create a word cloud.

Usage

wordcloud(formula, data, max.words = 100, color = "black")

Arguments

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

formula. An expression of the form y ~ x where x is the words we are selecting and y is the frequency with which the word occurs. Note that x and y are the variable names where these are located.

Note

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.

Examples

data(pride)
pride <- tally(~word, data = pride, format = "data.frame")
wordcloud(Freq ~ word, data = pride)


mobilizingcs/mobilizr documentation built on May 5, 2024, 1:01 a.m.