predictplot: Simple plot of 'prediction' with intervals.

Description Usage Arguments Examples

Description

Simple plot of prediction with intervals.

Usage

1
2
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

1
2
3
4
5
6
7
8
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)")

bayfoxr documentation built on May 2, 2019, 2:35 a.m.