plot_annual: 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
)
Value
A plot of the annual/seasonal process at location.
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.
Author
Candace Berrett and Adam Simpson
Examples
Run this codedata(out.sm)
attach(out.sm)
plot_annual(out.sm, location=1)
Run the code above in your browser using DataLab