Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


textmining (version 0.0.1)

topic_network: Function to plot topic network

Description

Function to plot topic network

Usage

topic_network(k, model)

Arguments

k
Number of words from each topic to be included in graph
model
trained tmTopicModel object

Value

network The graph visualising the network

Examples

Run this code
## Not run: 
# x <- tmCorpus(rep("as, a , a ,s  l k l l k k j h g f f hg j aaa", 100))
# require(rJava)
# model <- suppressMessages(train(x))
# table_topic <- topic_table(model)
# network <- topic_network(10 ,table_topic$words)
# ## End(Not run)

Run the code above in your browser using DataLab