Show the expected proportion of the corpus belonging to each topic

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