plot_timetrend: Plot time trend

View source: R/plots.R

plot_timetrendR Documentation

Plot time trend

Description

Plot time trend

Usage

plot_timetrend(
  x,
  show_topic = NULL,
  time_index_label = NULL,
  ci = 0.9,
  method = c("hdi", "eti"),
  point = c("mean", "median"),
  xlab = "Time",
  scales = "fixed",
  show_point = TRUE,
  ...
)

Arguments

x

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

show_topic

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

time_index_label

a vector. The label for time index. The length should be equal to the number of documents (time index provided to keyATM()).

ci

value of the credible interval (between 0 and 1) to be estimated. Default is 0.9 (90%). This is an option when calculating credible intervals (you need to set store_theta = TRUE in keyATM()).

method

method for computing the credible interval. The Highest Density Interval (hdi, default) or Equal-tailed Interval (eti). This is an option when calculating credible intervals (you need to set store_theta = TRUE in keyATM()).

point

method for computing the point estimate. mean (default) or median. This is an option when calculating credible intervals (you need to set store_theta = TRUE in keyATM()).

xlab

a character.

scales

character. Control the scale of y-axis (the parameter in ggplot2::facet_wrap()): free adjusts y-axis for parameters. Default is fixed.

show_point

logical. The default is TRUE. This is an option when calculating credible intervals.

...

additional arguments not used.

Value

keyATM_fig object.

See Also

save_fig()


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