plot.cband: Plot confidence bands for a mixture of regressions.
Description
Plots the fitted lines and confidence and prediction bands as
calculated by cband, for a mixture of regressions on one variable.
Usage
# S3 method for cband
plot(x, cbands=TRUE, pbands=TRUE, xlab=NULL, ylab=NULL,
main=NULL, …)
Arguments
x
An object specifying the fitted lines and confidence and
prediction bands, as produced by cband.
cbands
Logical argument specifying whether to plot the confidence bands.
pbands
Logical argument specifying whether to plot the prediction bands.
xlab
Character string specifying a label for the x-axis; defaults to "x".
ylab
Character string specifying a label for the y-axis; defaults to "y".
main
Character string specifying a title for the plot; if it is not
specified a default title is formed. If no title at all is desired,
specify main="".
…
Optional extra arguments; not currently used.
Side Effects
A plot is produced in whatever device is currently open.
Details
This function is a "method" for plot. Note that a simple plot
of the fit may be produced by specifying both cbands=FALSE and pbands=FALSE.
Examples
Run this code# NOT RUN {
#See \link{mixreg} for examples.
# }
Run the code above in your browser using DataLab