plot_bivariate_scatter: make scatter plot of samples from joint posterior...

View source: R/plotting.R

plot_bivariate_scatterR Documentation

make scatter plot of samples from joint posterior distribution across two parameters

Description

make scatter plot of samples from joint posterior distribution across two parameters

Usage

plot_bivariate_scatter(
  chain,
  true_value,
  start_value,
  var_name,
  lower_bounds,
  upper_bounds,
  labels,
  n_samples = 0,
  zoom = FALSE
)

Arguments

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.

Value

a ggplot object


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.