FindTopicsNumber_plot {ldatuning} | R Documentation |
FindTopicsNumber_plot
Description
Support function to analyze optimal topic number. Use output of the
FindTopicsNumber
function.
Usage
FindTopicsNumber_plot(values)
Arguments
values |
Data-frame with first column named 'topics' and other columns are values of metrics. |
Examples
## 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)
[Package ldatuning version 1.0.2 Index]