Learn R Programming

sspline (version 0.1-6)

plot.smooth.sspline: Plot a Smooth.sspline Object

Description

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

Usage

"plot"(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 ...

Value

NULL

Details

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

See Also

predict.smooth.sspline

Examples

Run this code
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)

Run the code above in your browser using DataLab