| plot.cband | R Documentation |
Plots the fitted lines and confidence and prediction bands as calculated by cband, for a mixture of regressions on one variable.
## S3 method for class 'cband'
plot(x, cbands=TRUE, pbands=TRUE,
type=c("both","upper","lower"),
legPos="topleft", sepFac=0.8, ...)
x |
An object of class |
cbands |
Logical scalar; should the confidence bands be plotted? |
pbands |
Logical scalar; should the prediction bands be plotted? |
type |
Character string specifying whether the bands plotted should be
two-sided ( |
legPos |
A list with entries |
sepFac |
“Separation factor”.
A numeric scalar determining the amount of separation between
the two parts of the legend (see above). Has an effect only
if both parts of the legend are present. Making |
... |
Optional extra arguments for |
This function is a method for plot. Note that a simple plot
of the fit may be produced by calling plot(object) where
object is an object of class "mixreg" and the x
argument of this function was produced by applying cband()
to this object.
None. This function is called for its side effect of producing a plot.
Rolf Turner r.turner@auckland.ac.nz
cband(), plot.cint(),
plot.mixreg(), plot.mixresid(),
qqMix(), residuals.mixreg()
thStrt <- list(list(beta=c(3.0,0.1),sigsq=16,lambda=0.5),
list(beta=c(0.0,0.0),sigsq=16,lambda=0.5))
fit <- mixreg(plntsInf~aphRel,ncomp=2,thetaStart=thStrt,
covMat=TRUE,data=aphids)
cbds <- cband(fit)
plot(cbds)
plot(cbds,pbands=FALSE)
plot(cbds,pbands=FALSE,type="u")