FindTopicsNumber_plot: FindTopicsNumber_plot

View source: R/main.R

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

## 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)


nikita-moor/ldatuning documentation built on June 2, 2024, 4:13 a.m.