topic_wordcloud: Simple wordcloud visualization of the topics.

Description Usage Arguments Examples

Description

Simple wordcloud visualization of the topics.

Usage

1
2
topic_wordcloud(model, topic_id = 1, k = 10, rot_per = 0,
  random_order = FALSE)

Arguments

model

tmTopicModel object

topic_id

Id of the analised topic.

k

number of words to be ploted.

rot_per

wordcloud param

random_order

order of words

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(rJava)
x <- tmCorpus(lapply(1:100, function(x) paste(sample(LETTERS, 11),
                                              collapse = "")))

model <- train(x)
topic_wordcloud(model, topic_id = 2, k = 11)

## End(Not run)

textmining documentation built on May 2, 2019, 6:47 a.m.