powerscale_plots | R Documentation |
Various diagnostic plots for power-scaling sensitivity. See Plot Descriptions below for details.
powerscale_plot_dens(x, ...)
powerscale_plot_ecdf(x, ...)
## S3 method for class 'powerscaled_sequence'
powerscale_plot_ecdf(
x,
variable = NULL,
resample = FALSE,
length = 3,
facet_rows = "component",
help_text = getOption("priorsense.plot_help_text", TRUE),
colors = NULL,
...
)
powerscale_plot_quantities(x, ...)
## S3 method for class 'powerscaled_sequence'
powerscale_plot_quantities(
x,
variable = NULL,
quantity = c("mean", "sd"),
div_measure = "cjs_dist",
resample = FALSE,
measure_args = NULL,
mcse = TRUE,
quantity_args = NULL,
help_text = getOption("priorsense.plot_help_text", TRUE),
colors = NULL,
...
)
x |
An object of class |
... |
Arguments passed to |
variable |
A character vector of variable names. If |
resample |
Logical; Indicate whether or not draws should be resampled based on calculated importance weights. |
length |
Numeric specifying how many alpha values should be
used. Ignored of the object is of class |
facet_rows |
Character defining the rows of the plot facets, either "variable" or "component". Default is "variable". |
help_text |
Logical indicating whether title and subtitle with explanatory description should be included in the plot. Default is TRUE. Can be set via option "priorsense.show_help_text". |
colors |
Character vector of colors to be used for
plots. Either length 3 for |
quantity |
A character vector specifying one or several quantities to plot. Options are "mean", "median", "sd", "mad", "quantile". |
div_measure |
The divergence measure to use. The following methods are implemented:
|
measure_args |
Named list of further arguments passed to divergence measure functions. |
mcse |
Boolean; If TRUE will plot +/- 2 * Monte Carlo standard error of the base quantity on the quantities plot. |
quantity_args |
Named list of further arguments passed to
quantity functions. Passed as |
A ggplot object that can be further customized using the ggplot2 package.
powerscale_plot_dens()
Kernel density plot of power-scaled posterior draws with respect to power-scaling.
powerscale_plot_ecdf()
Empirical cumulative distribution function plot of power-scaled posterior draws with respect to power-scaling.
powerscale_plot_quantities()
Plot of posterior quantities with respect to power-scaling.
ex <- example_powerscale_model()
powerscale_plot_dens(ex$draws)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.