Description Usage Arguments Value Examples
View source: R/generate_cloud.R
Generate word cloud
1 | generate_cloud(tweets, type = "words")
|
tweets |
A vector of tweets |
type |
One of "words", "hashtag", "stopwords", default="words". Type of content to show in wordcloud. "words" shows all words, "hashtag" only shows hashtags, and "stopwords" does not show common English words. |
A dataframe containing words and their associated frequencies
1 2 3 4 5 | tweets <- c("Make America Great Again! @DonaldTrump #America",
"It's rocket-science tier investment~~ #LoveElonMusk",
"America America America always GREAT",
"make america great again! #AMERICA")
cloud_df <- generate_cloud(tweets)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.