plot.stPredict: Plot stPredict objects

Description Usage Arguments Value Examples

View source: R/plot.stPredict.R

Description

This function provides basic plotting for telefit package data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## S3 method for class 'stPredict'
plot(
  x,
  type = "prediction",
  t = NULL,
  stFit = NULL,
  stData = NULL,
  err.comparison = NULL,
  err.var = NULL,
  err.lab = err.var,
  pattern = 1,
  dots = NULL,
  burn = 1,
  signif.telecon = F,
  ...
)

Arguments

x

Object of class stPredict to plot.

type

One of the following options to specify what type of plot to build

prediction

Spatial plot of predicted response variable for a given timepoint t.

residual

Spatial plot of residual for a given timepoint t. Note, this plot is only available if the model has been evaluated and the predictions have been compared to another response dataset.

observed

Spatial plot of observed response variable for a given timepoint t. Note, this plot is only available if the model has been evaluated and the predictions have been compared to another response dataset.

standard_error (or 'se')

Spatial plot of prediction standard errors for a given timepoint t.

local

Spatial plot of the local components of the response variable for a given timepoint t.

remote

Spatial plot of the remote components of the response variable for a given timepoint t.

w

Spatial plot of the spatial noise component of the reponse variable for a given timepoint t.

correlation

Scatterplot of observed vs. predicted response variables for a given timepoint t. Note, this plot is only available if the model has been evaluated and the predictions have been compared to another response dataset.

teleconnection

Spatial plot of remote coefficients associated with a location coord.s in the spatial response domain.

teleconnection_knot

Spatial plot of remote knot coefficients associated with a location coord.s in the spatial response domain.

teleconnection_knot_transect
errors

Series of plots that measure overall prediction error across prediction timepoints.

cat.prediction

Spatial plot of the predicted response variable category (i.e., above/below average) for a given timepoint t.

truth

Note, this plot is only available if the model has been evaluated and the predictions have been compared to another response dataset.

residual

Note, this plot is only available if the model has been evaluated and the predictions have been compared to another response dataset.

eof_alpha_knots

A map of the local domain where the plotted colors show the remote influence coefficients mapped onto the eof pattern specified by the "pattern" argument.

t

timepoint to plot. Will automatically plot the first timepoint if t=NULL.

stFit

Object of class stFit to provide related information and structures for plotting estimated teleconnection effects

stData

Object of class stData to provide coordinate and related information for plotting estimated teleconnection effects

err.comparison

data.frame with Year column and a column for a variable that will be used to plot annual errors against

err.var

name of variable in err.comparison for plotting against

err.lab

label for name of variable in err.comparison for plotting against

pattern

if type=='eof_alpha_knots', this specified which eof the remote coefficients should be mapped onto and then plotted over the local domain

dots

additional named arguments with defaults to pass to additional functions

burn

number of observations to exclude from graph

signif.telecon

TRUE to highlight significant teleconnection effects

...

additional arguments to be passed to lower-level plotting functions

Value

a ggplot object with the specified map

Examples

1
2
data("coprecip.predict")
p = plot(coprecip.predict, t=1981)

jmhewitt/telefit documentation built on Feb. 9, 2020, 7:15 p.m.