Last data update: 2014.03.03

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

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)

Results