twitterCloud: function to create a wordcloud

Description Usage Arguments Details Author(s) References Examples

View source: R/twitterCloud.R

Description

This function creates a wordcloud after preprocessed data (claeaning, stemming ...)

Usage

1
twitterCloud(x, stopwordLanguages = NULL, wordLength = 0, wordFrequencies = 1, scale = c(3.5, 0.3), colors = NULL)

Arguments

x

a character string

stopwordLanguages

the language of stopword to be deleted

wordLength

the length of terms to be included in wordcloud. Default 0 (all terms)

wordFrequencies

the frequency of terms to be included in wordcloud. Default 1 (all terms)

scale

the dimension of terms in the wordcloud (figure). Default c(3.5, 0.3)

colors

The colors of wordcloud. Default NULL (backgroud white, terms black)

Details

To use this feature you need a twitter account and twitter app. To create the app go here www.twitter.com/apps

Author(s)

Nicola Procopio

References

http://www.rdatamining.com/examples/text-mining

Examples

1
2
## data(tweets)
## twitterCloud(tweets$text, stopwordLanguages = stopwords('en'), wordLength = 5, wordFrequencies = 2, colors = brewer.pal(5,'Dark2'))

nickprock/twitterFUN documentation built on Feb. 24, 2020, 5:23 p.m.