plot_annual: Plot annual/seasonal behavior at a specific location.

View source: R/posterior_inference.R

plot_annualR Documentation

Plot annual/seasonal behavior at a specific location.

Description

Plot annual/seasonal behavior at a specific location.

Usage

plot_annual(
  out,
  location,
  add = FALSE,
  years = "one",
  interval = 0.95,
  yrange = NULL,
  new_x = NULL
)

Arguments

out

Output from BSTFA or BSTFAfull.

location

Either a single integer indicating the location in the data set to plot or a vector of length 2 providing the longitude and latitude of the new location.

add

Logical scalar indicating whether the annual/seasonal process should be added to the existing plot. Default is FALSE.

years

Either 'one' (indicating to plot just a single year; default) or 'all' (indicating to plot all years in the observed time period).

interval

Numeric value between 0 and 1 specifying the probability of the credible interval.

yrange

Numeric vector of length 2 providing the lower and upper bounds of the y-axis. If NULL (default), the y-axis limits are chosen using the range of the seasonal process and data.

new_x

If the original model included covariates x, include the same covariates for location.

Value

A plot of the annual/seasonal process at location.

Author(s)

Candace Berrett and Adam Simpson

Examples

data(out.sm)
attach(out.sm)
plot_annual(out.sm, location=1)

BSTFA documentation built on Aug. 28, 2025, 9:09 a.m.