View source: R/plot_thoughts.R
Alternative plotting of most representative texts
1 2 | plot_thoughts(fit, texts, split_width = 62, n_sentences = 25,
cutoff = 190)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.