View source: R/posterior_inference.R
plot_location | R Documentation |
Plot a location's time series of estimated/predicted values.
plot_location(
out,
location,
new_x = NULL,
type = "mean",
par.mfrow = c(1, 1),
pred.int = FALSE,
ci.level = c(0.025, 0.975),
uncertainty = TRUE,
xrange = NULL,
truth = FALSE,
ylim = NULL
)
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. |
new_x |
If the original model included covariates |
type |
One of |
par.mfrow |
A vector of length 2 indicating the number of rows and columns to divide the plotting window. Default is |
pred.int |
Logical scalar indicating whether the interval should be a posterior predictive interval ( |
ci.level |
If |
uncertainty |
Logical scalar indicating whether to plot the uncertainty bounds ( |
xrange |
A date vector of length 2 providing the lower and upper bounds of the dates to include in the plot. |
truth |
Logical scalar indicating whether to include the observed measurements ( |
ylim |
Numeric vector of length 2 providing the lower and upper bounds of the y-axis. If |
A plot of predicted values for location
.
Candace Berrett and Adam Simpson
data(out.sm)
attach(out.sm)
plot_location(out.sm, location=1, pred.int=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.