Description Usage Arguments Value Examples
Function to plot topic network
1 | topic_network(k, model)
|
k |
Number of words from each topic to be included in graph |
model |
trained tmTopicModel object |
network The graph visualising the network
1 2 3 4 5 6 7 8 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.