ldatuning (version 1.0.2)

FindTopicsNumber_plot: 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

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab