word_cloud: word_cloud

Description Usage Arguments Examples

View source: R/wordcloud.R

Description

Plot a word cloud from a document-term matrix.

Usage

1
word_cloud(dtm, n = 50, remove_stopwords = TRUE, ...)

Arguments

dtm

A DocumentTermMatrix object.

n

The maximum number of words to plot.

remove_stopwords

Whether to remove stopwords appearing in a language-specific list (see tm::stopwords).

...

Additional arguments passed to wordcloud.

Examples

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)

R.temis documentation built on May 13, 2021, 1:08 a.m.

Related to word_cloud in R.temis...