Learn R Programming

sspline (version 0.1-4)

plot.smooth.sspline: 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(deg)", ...)
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 ...}
It calls predict.smooth.sspline and filled.contour.
NULL [object Object] The longitudes and latitudes are measured in degrees. predict.smooth.sspline

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) smooth methods hplot

Arguments