Learn R Programming

textmining (version 0.0.1)

topic_wordcloud: Simple wordcloud visualization of the topics.

Description

Simple wordcloud visualization of the topics.

Usage

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

Run this code
## 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)

Run the code above in your browser using DataLab