plot.cband {mixreg} | R Documentation |
Plots the fitted lines and confidence and prediction bands as calculated by cband, for a mixture of regressions on one variable.
plot.cband(x, cbands=TRUE, pbands=TRUE, xlab=NULL, ylab=NULL, main=NULL, ...)
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. |
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.
A plot is produced in whatever device is currently open.
bootcomp, cband, covmix, mixreg, plot.mresid, qq.mix, resid.mix
#See mixreg for examples.