Description Usage Arguments Value Examples
Produces a two-panel figure of [1] the change point
distributions as histograms over time and [2] the time series of the
fitted topic proportions over time, based on a selected set of
change point locations.
pred_gamma_TS_plot
produces a time series of the
fitted topic proportions over time, based on a selected set of change
point locations.
rho_hist
: make a plot of the change point
distributions as histograms over time.
1 2 3 4 5 6 7 8 | TS_summary_plot(x, cols = set_TS_summary_plot_cols(), bin_width = 1,
xname = NULL, border = NA, selection = "median", LDATS = FALSE)
pred_gamma_TS_plot(x, selection = "median", cols = set_gamma_colors(x),
xname = NULL, together = FALSE, LDATS = FALSE)
rho_hist(x, cols = set_rho_hist_colors(x$rhos), bin_width = 1,
xname = NULL, border = NA, together = FALSE, LDATS = FALSE)
|
x |
Object of class |
cols |
|
bin_width |
Width of the bins used in the histograms, in units of the x-axis (the time variable used to fit the model). |
xname |
Label for the x-axis in the summary time series plot. Defaults
to |
border |
Border for the histogram, default is |
selection |
Indicator of the change points to use. Currently only defined for "median" and "mode". |
LDATS |
|
together |
|
NULL
.
1 2 3 4 5 6 7 8 9 10 11 | data(rodents)
document_term_table <- rodents$document_term_table
document_covariate_table <- rodents$document_covariate_table
LDA_models <- LDA_set(document_term_table, topics = 2)[[1]]
data <- document_covariate_table
data$gamma <- LDA_models@gamma
weights <- document_weights(document_term_table)
TSmod <- TS(data, gamma ~ 1, nchangepoints = 1, "newmoon", weights)
TS_summary_plot(TSmod)
pred_gamma_TS_plot(TSmod)
rho_hist(TSmod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.