plot.smooth.sspline {sspline}R Documentation

Plot a Smooth.sspline Object

Description

Plot a smoothing spherical spline using color to represent the function value.

Usage

plot.smooth.sspline(x, lon, lat, main="", xlab="Longitude",
    ylab="Latitude", key.title="Temp\n(deg)", ...)

Arguments

x a smooth.sspline object
lon the longitudes on which the function values will be calculated
lat the latitudes on which the function values will be calculated
main the main title of the plot
xlab the x-axis label of the main plot
ylab the y-axis label of the main plot
key.title the title for the colored key
... other plotting parameters, such as lwd, asp, and ...

Details

It calls predict.smooth.sspline and filled.contour.

Value

NULL

Note

The longitudes and latitudes are measured in degrees.

Author(s)

Xianhong Xie

See Also

predict.smooth.sspline

Examples

data(WTdiff)

subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:4]
attach(subdat)

splobj <- smooth.sspline(lon, lat, avgd)

plot(splobj, lon=seq(-180, 180, len=50), lat=seq(-90, 90, len=25),
     main="World Average Temperature Change")

detach(subdat)

[Package sspline version 0.1-5 Index]