plot_topic_trends: Generate trend plots for topics modelled with text2vec and...

View source: R/plot_topic_trends.R

plot_topic_trendsR Documentation

Generate trend plots for topics modelled with text2vec and processed with textility

Description

Documentation to be updated...

Usage

plot_topic_trends(topic_trends, topic_selection, n = NULL,
  exclude_topics = NULL, out_dir = NULL, filename_suffix = "",
  ylim = NULL, facet_columns = 3, text_size = 12, device = "pdf")

Arguments

topic_trends

...

topic_selection

Named list of character vectors with the topic numbers to be plotted (and stored) under the list name.

n

Number of top topics to plot per list in topic_selection.

exclude_topics

A character vector giving the topic numbers to be excluded from all lists in topic_selection.

out_dir

Directory where plots are saved.

filename_suffix

A string to specify the end of the filename inserted before .filetype.

ylim

The y limits, a numeric vector with two entries. By default c(0, max(prob_mean)).

facet_columns

The number of columns to be used for the facet plot.

text_size

By default 12.

device

The plotting device (output filetype), by default "pdf".


manuelbickel/textility documentation built on Nov. 25, 2022, 9:07 p.m.