plot.hero_radspline: Plot a 'hero_radspline'

View source: R/plot.hero_radspline.R

plot.hero_radsplineR Documentation

Plot a hero_radspline

Description

Plot a hero_radspline to compare the knots to the observed data locations.

Usage

## S3 method for class 'hero_radspline'
plot(
  x,
  blist = list(col = "grey"),
  glist = list(col = seq_along(x$grid) + 1, pch = seq_along(x$grid)),
  ...
)

Arguments

x

A hero_radspline object.

blist

A list to pass the plot method associated with SpatialPolygons-class when plotting x$border. The default is a grey-colored polygon.

glist

A list to pass the plot method associated with SpatialPoints-class when plotting each element of the list x$grid. A basic color scheme and point style is automatically chosen if none is supplied.

...

Additional arguments to pass the plot method associated with SpatialPolygons-class when plotting x$eborder.

Details

If the default plotting styles for x$grid are to be changed, the user can either choose a single color/style that is replicated for each element of x$grid or supply a vector which has length matching length{x$grid}. See Examples.

Author(s)

Joshua French

See Also

radspline

Examples

border = border.grid(lon, lat)
r = radspline(nknots = c(36, 36 * 4), border = border)
# default color scheme
plot(r)
# change color and point styles of points,
# and background of original domain
plot(r, blist = list(col = "yellow"),
        glist = list(col = c("blue", "orange"),
                     pch =  3:4))

hero documentation built on July 26, 2023, 5:11 p.m.