make_blank_density_plot: Prepare a blank plot for showing densities

View source: R/plotting_functions.R

make_blank_density_plotR Documentation

Prepare a blank plot for showing densities

Description

The input, bayesian_summary, is the result of a call to summarize_bayesian_inference. Prepare a blank plot for adding density information, e.g. by calling plot_50_percent_quantile and add_shaded_quantiles. If the axis labels and limits are not specified, sensible defaults are used.

Usage

make_blank_density_plot(
  bayesian_summary,
  xlim = NA,
  ylim = NA,
  xlab = "Calendar Date [AD]",
  ylab = "Density",
  ...
)

Arguments

bayesian_summary

A list-like object of class bd_bayesian_summary with information on the quantiles of the density function and growth rate (see summarize_bayesian_inference).

xlim

Numeric vector of length 2, giving the x coordinate range.

ylim

Numeric vector of length 2, giving the y coordinate range.

xlab

x-axis label.

ylab

y-axis label.

...

Additional parameters to pass to plot.

See Also

summarize_bayesian_inference()


eehh-stanford/baydem documentation built on June 3, 2024, 5:46 p.m.