Description Usage Arguments Examples
Support function to analyze optimal topic number. Use output of the
FindTopicsNumber
function.
1 | FindTopicsNumber_plot(values)
|
values |
Data-frame with first column named 'topics' and other columns are values of metrics. |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(topicmodels)
data("AssociatedPress", package="topicmodels")
dtm <- AssociatedPress[1:10, ]
optimal.topics <- FindTopicsNumber(dtm, topics = 2:10,
metrics = c("Arun2010", "CaoJuan2009", "Griffiths2004")
)
FindTopicsNumber_plot(optimal.topics)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.