Description Usage Arguments Examples
Plot a word cloud from a document-term matrix.
1 | word_cloud(dtm, n = 50, remove_stopwords = TRUE, ...)
|
dtm |
A |
n |
The maximum number of words to plot. |
remove_stopwords |
Whether to remove stopwords appearing in a language-specific list
(see |
... |
Additional arguments passed to |
1 2 3 4 | file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
corpus <- import_corpus(file, "factiva", language="en")
dtm <- build_dtm(corpus)
word_cloud(dtm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.