plot_lda_scores: Plot Scores Generated by 'score_models' Function

Description Usage Arguments Examples

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 May 18, 2019, 10:15 a.m.