predictplot {bayfoxr}R Documentation

Simple plot of prediction with intervals.

Description

Simple plot of prediction with intervals.

Usage

predictplot(y, x = NULL, probs = c(0.05, 0.5, 0.95),
  poly_col = grDevices::rgb(0, 0, 0, 0.1), ...)

Arguments

y

A prediction object to plot.

x

Optional vector or NULL, indicating were prediction inferences fall along x-axis. Must be the same length as the inferred values in y.

probs

Optional 3-member Vector of numerics indicating low, middle, and high probability intervals to plot. All must be <= 1.

poly_col

Optional color for interval polygon.

...

Additional arguments passed to plot.

Examples

data(bassriver)

# Using the "pooled annual" calibration model:
sst <- predict_seatemp(bassriver$d18o, d18osw=0.0, 
                       prior_mean=30.0, prior_std=20.0)

predictplot(x=bassriver$depth, y=sst, ylim=c(20, 40), 
            ylab="SST (°C)", xlab="Depth (m)")


[Package bayfoxr version 0.0.1 Index]