plot_prior: Plot prior

Description Usage Arguments

View source: R/plot_prior.R

Description

plot_prior plots your prior on the global diet proportions (p.global) and the uninformative prior side-by-side. Your prior is in red, and the "uninformative"/generalist prior (alpha = 1) in dark grey.

Usage

1
2
3
4
5
6
7
plot_prior(
  alpha.prior = 1,
  source,
  plot_save_pdf = TRUE,
  plot_save_png = FALSE,
  filename = "prior_plot"
)

Arguments

alpha.prior

vector of alpha (dirichlet hyperparameters, none can be = 0)

source

output from load_source_data

plot_save_pdf

T/F, save the plot as a pdf?

plot_save_png

T/F, save the plot as a png?

filename

name of the file to save (e.g. "prior_plot")


MixSIAR documentation built on Oct. 23, 2020, 6:45 p.m.