R/TS_plots.R
set_rho_hist_colors.Rd
Based on the inputs, create the set of colors to be used in the change point histogram.
set_rho_hist_colors(x = NULL, cols = NULL, option = "D", alpha = 1)
x |
|
---|---|
cols | Colors to be used to plot the histograms of change points.
Any valid color values (e.g., see |
option | A |
alpha | Numeric value [0,1] that indicates the transparency of the
colors used. Supported only on some devices, see
|
Vector of character
hex codes indicating colors to use.
# \donttest{ 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) set_rho_hist_colors(TSmod$rhos) # }