plot.stFit: Plot stFit objects

Description Usage Arguments Value Examples

View source: R/plot.stFit.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
17
18
19
20
21
## S3 method for class 'stFit'
plot(
  x,
  type = "density",
  stData = NULL,
  coord.s = NULL,
  coord.knot = NULL,
  text.size = NULL,
  axis.text.size = NULL,
  title.text.size = NULL,
  burn = 1,
  signif.telecon = F,
  p = 1,
  local.covariate = NULL,
  lwd = NULL,
  facet.signif = 3,
  stat.smooth.bw = NULL,
  stat.smooth.degree = NULL,
  dots = NULL,
  ...
)

Arguments

x

Object of class stFit to plot.

type

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

traceplot
density
pairs
teleconnection
teleconnection_local
teleconnection_knot
teleconnection_knot_transect
teleconnection_knot_influence
beta
stData

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

coord.s

if plot type is 'teleconnection', specifies the longitude and latitude of local coordinate for which to plot estimated teleconnection effects. if NULL, the middle local coordinate will be plotted.

coord.knot

if plot type is 'teleconnection_knot_influence' or 'teleconnection_knot_local', specifies the longitude and latitude of knot coordinate for which to plot influence of remote coefficient on remote covariates, or the teleconnection coefficients associated with coord.knot

text.size

number specifying the size of text labels

axis.text.size

number specifying the size of axis text labels

title.text.size

number specifying the size of title

burn

number of observations to exclude from graph

signif.telecon

if TRUE, will highlight significant teleconnection effects when type=='teleconnection'

p

If stFit was fit with spatially varying coefficients, p specifies the index of the spatially varying coefficient to plot

local.covariate

data.frame with variables, 'lon.Y', 'lat.Y', 'x' that will be plotted against teleconnection effects if type=='teleconnection_knot_transect'

lwd

specifies linewidth for plots that include reference lines

facet.signif

number of significant figures to round facet latitudes and longitudes for if type=='teleconnection_knot_transect'

stat.smooth.bw

if type=='teleconnection_knot_transect' this specifies the bandwith of the non-parametric smooth of the estimates

stat.smooth.degree

if type=='teleconnection_knot_transect' this specifies the degree of the non-parametric smooth of the estimates

dots

additional named arguments with defaults to pass to additional functions

...

additional arguments to pass to functions

Value

a ggplot object with the specified map

Examples

1
2
data("coprecip.fit")
plot(coprecip.fit, burn = 50, type = 'trace')

telefit documentation built on Feb. 4, 2020, 9:08 a.m.

Related to plot.stFit in telefit...