FindTopicsNumber_plot: FindTopicsNumber_plot

Description Usage Arguments Examples

View source: R/main.R

Description

Support function to analyze optimal topic number. Use output of the FindTopicsNumber function.

Usage

1

Arguments

values

Data-frame with first column named 'topics' and other columns are values of metrics.

Examples

 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)

ldatuning documentation built on April 21, 2020, 9:05 a.m.