textplot_terms | R Documentation |
Plot coefficients of words
textplot_terms(
x,
highlighted = NULL,
max_highlighted = 50,
max_words = 1000,
...
)
x |
a fitted textmodel_wordmap object. |
highlighted |
quanteda::pattern to select words to highlight. If a quanteda::dictionary is passed, words in the top-level categories are highlighted in different colors. |
max_highlighted |
the maximum number of words to highlight. When
|
max_words |
the maximum number of words to plot. Words are randomly sampled to keep the number below the limit. |
... |
passed to underlying functions. See the Details. |
Users can customize the plots through ...
, which is
passed to ggplot2::geom_text()
and ggrepel::geom_text_repel()
. The
colors are specified internally but users can override the settings by appending
ggplot2::scale_colour_manual()
or ggplot2::scale_colour_brewer()
. The
legend title can also be modified using ggplot2::labs()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.