explore_LDAs_lollipops: explore_LDAs but with lollipops!

View source: R/explore_LDAs_lollipop.R

explore_LDAs_lollipopsR Documentation

explore_LDAs but with lollipops!

Description

Produces exploratory visualisations from LDA models.

Usage

explore_LDAs(
 ldas,
 top_terms = TRUE,
 top_n = 15,
 nrow = 2,
 diff_terms = TRUE,
 diff_n = 10,
 bigrams = TRUE,
 bigram_n = 50,
 bigram_threshold = 0.5,
 exemplars = TRUE,
 exemplars_n = 50,
 probabilities = TRUE,
 coherence = TRUE,
 coherence_n = 10
)

Arguments

ldas

A nested tibble where each row contains and LDA model.

top_terms

Should bar charts of the top terms for each topic be produced?

top_n

How many terms should be included in the top terms bar chart for each topic?

nrow

How many rows should the facetted plot go across?

diff_terms

Should bar charts of distinguishing terms for each topic be produced?

diff_n

How many terms should be included in the distinguishing terms bar chart for each topic?

bigrams

Should a bigram network be produced for each topic?

bigram_n

How many bigrams should be included in the network?

bigram_threshold

What proportion of a post should be assigned to a topic for it to be considered for inclusion in the bigram network?

exemplars

Should a tibble of exemplar posts be produced?

exemplars_n

How many exemplars should be provided for each topic?

probabilities

Should a tibble of document-topic probabilities be produced?

coherence

Should a tibble of topic coherence measurements be produced?

coherence_n

Number of words to be used in coherence calculation.

Value

A nested tibble containing columns with the requested objects.


jpcompartir/JPackage documentation built on March 20, 2023, 4 a.m.