plotcloud: Plot word cloud

plotcloudR Documentation

Plot word cloud

Description

Plot a word cloud based on the word frequencies in the documents.

Usage

plotcloud(corpus, k = NULL, stopwords = "en", ...)

Arguments

corpus

The corpus of documents (a vector of characters) or the vocabulary of the documents (result of function getvocab).

k

A categorial variable (vector or factor).

stopwords

Stopwords, or the language of the documents. NULL if stop words should not be removed.

...

Other parameters.

See Also

plotzipf, getvocab, wordcloud

Examples

## Not run: 
text = loadtext ("http://mattmahoney.net/dc/text8.zip")
plotcloud (text)
vocab = getvocab (text, mincount = 1, lang = NULL, stopwords = "en")
plotcloud (vocab)

## End(Not run)

fdm2id documentation built on July 9, 2023, 6:05 p.m.

Related to plotcloud in fdm2id...