textplot_terms: Plot polarity scores of words

View source: R/textplot.R

textplot_termsR Documentation

Plot polarity scores of words

Description

Plot polarity scores of words

Usage

textplot_terms(x, highlighted = NULL, max_highlighted = 50, max_words = 10000)

Arguments

x

a fitted textmodel_lss object.

highlighted

quanteda::pattern to select words to highlight.

max_highlighted

the maximum number of words to highlight. When highlighted = NULL, words to highlight are randomly selected proportionally to polarity ^ 2 * log(frequency).

max_words

the maximum number of words to plot. Words are randomly sampled to keep the number below the limit.


LSX documentation built on March 7, 2023, 6:46 p.m.

Related to textplot_terms in LSX...