plot_topicprop: Show the expected proportion of the corpus belonging to each...

View source: R/plots.R

plot_topicpropR Documentation

Show the expected proportion of the corpus belonging to each topic

Description

Show the expected proportion of the corpus belonging to each topic

Usage

plot_topicprop(
  x,
  n = 3,
  show_topic = NULL,
  show_topwords = TRUE,
  label_topic = NULL,
  order = c("proportion", "topicid"),
  xmax = NULL
)

Arguments

x

the output from a keyATM model (see keyATM()).

n

The number of top words to show. Default is 3.

show_topic

an integer or a vector. Indicate topics to visualize. Default is NULL.

show_topwords

logical. Show topwords. The default is TRUE.

label_topic

a character vector. The name of the topics in the plot.

order

The order of topics.

xmax

a numeric. Indicate the max value on the x axis

Value

keyATM_fig object

See Also

save_fig()


keyATM documentation built on May 31, 2023, 6:27 p.m.