wordCloudVis: Plot a word cloud

Description Usage Arguments Details See Also Examples

View source: R/textMining.R

Description

Plot a word cloud

Usage

1
wordCloudVis(corpus, min.freq = 2, max.words = 150, random.order = TRUE)

Arguments

corpus

the words

min.freq

words with frequency below min.freq will not be plotted

max.words

Maximum number of words to be plotted. least frequent terms dropped

random.order

plot words in random order. If false, they will be plotted in decreasing frequency

Details

If freq is missing, then words can either be a character vector, or Corpus. If it is a vector and freq is missing, standard stop words will be removed prior to plotting.

See Also

tweet_corpus

tweet_clean

tweet_clean_corpus

Examples

1
2
3
4
setupTwitterConn()
tweets <- tweet_corpus(search = "audusd", n = 100, since = as.character(Sys.Date()-7), until = as.character(Sys.Date()))
tweets <- text_clean(tweets$v, rmDuplicates = FALSE, cores = 6, stems = NULL)
wordCloudVis(tweets$corpus)

ivanliu1989/RQuant documentation built on Sept. 13, 2019, 11:53 a.m.