plot.ssr {assist} | R Documentation |
Creates a set of plots suitable for assessing a fitted smoothing spline model of class ssr
.
plot.ssr(x, ask=FALSE)
x |
a ssr object.
|
ask |
if TRUE, plot.ssr operates in interactive mode. |
This function is a method for the generic function plot for class ssr
.
It can be invoked by calling plot for an object of the appropriate class,
or directly by calling plot.ssr regardless of the class of the object.
An appropriate x-y plot is produced to display diagnostic plots. These can be one or all of the following choices:
The first plot of estimate of function with CIs is only useful for univariate smoothing spline fits.
When ask=TRUE, rather than produce each plot sequentially, plot.ssr displays a menu listing all the plots that can be produced. If the menu is not desired but a pause between plots is still wanted one must set par(ask=TRUE) before invoking this command with argument ask=FALSE.
Chunlei Ke chunlei_ke@pstat.ucsb.edu and Yuedong Wang yuedong@pstat.ucsb.edu
plot
, ssr
, predict.ssr
## Not run: library(MASS) ## Not run: fit1<- ssr(accel~times, data=mcycle, scale=TRUE, rk=cubic(times)) ## Not run: plot(fit1,ask=TRUE)