powered by
Plot a word cloud from a document-term matrix.
word_cloud(dtm, n = 50, remove_stopwords = TRUE, ...)
A DocumentTermMatrix object.
DocumentTermMatrix
The maximum number of words to plot.
Whether to remove stopwords appearing in a language-specific list (see tm::stopwords).
tm::stopwords
Additional arguments passed to wordcloud.
wordcloud
# NOT RUN { 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) # }
Run the code above in your browser using DataLab