plot_lda_scores: Plot Scores Generated by 'score_models' Function

Description Usage Arguments Examples

View source: R/ldatuning2.R

Description

Support function to analyze optimal topic number. Use output of the score_models function. I have changed the original

Usage

1
plot_lda_scores(values, pal = NULL)

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)

nateaff/legolda documentation built on Sept. 24, 2017, 4:38 a.m.