Description Usage Arguments Details See Also Examples
Plot a word cloud
1 | wordCloudVis(corpus, min.freq = 2, max.words = 150, random.order = TRUE)
|
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 |
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.
tweet_corpus
tweet_clean
tweet_clean_corpus
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.