plot_thoughts: Alternative plotting of most representative texts

Description Usage Arguments

View source: R/plot_thoughts.R

Description

Alternative plotting of most representative texts

Usage

1
2
plot_thoughts(fit, texts, split_width = 62, n_sentences = 25,
  cutoff = 190)

Arguments

fit

An ‘STM’ model object.

texts

A character vector where each entry contains the text of a document. Must be in the same order as the documents object. NOTE: This is not the documents which are passed to ‘stm’ and come out of ‘prepDocuments’, this is the actual text of the document.

split_width

The character width to split texts/thoughts into a new line.

n_sentences

The number of sentences to print per topic.

cutoff

The number of characters before the text/thought should be cut off with (...).


mikajoh/stmprinter documentation built on Jan. 2, 2020, 2:55 a.m.