plot_bivariate_scatter | R Documentation |
make scatter plot of samples from joint posterior distribution across two parameters
plot_bivariate_scatter( chain, true_value, start_value, var_name, lower_bounds, upper_bounds, labels, n_samples = 0, zoom = FALSE )
chain |
data table containing parameter values |
true_value |
If simulated data is used, numeric vector of length 2 containing the true parameter values, otherwise c(NA, NA) |
start_value |
nx2 matrix of starting parameter values, where n is the number f parallel MCMC chains |
var_name |
character vector of length 2. Parameter names in colnames(chain) |
lower_bounds |
numeric vector of length 2. Lower axis limits. |
upper_bounds |
numeric vector of length 2. Upper axis limits. |
labels |
character vector of length 2. Parameter names to display on plot |
n_samples |
numeric vector of length 1. number of samples to plot, taken at evenly spaced intervals along the chain. if 0, plot all samples. |
zoom |
logical vector of length 1. if TRUE, the axis limits are the range of the parameter values in the chain (the start value is disregarded). if FALSE, the limits are as given in lower_bounds and upper_bounds, unless at least one of these is NA, in which case the range of the chain values + start value is used. |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.