Description Usage Arguments Value Author(s) See Also Examples
Plots the fitted regression lines for a mixture of regression
models as fitted by mixreg()
(or possibly visualFit()
).
1 2 3 |
x |
An object of class |
y |
Not used. |
cMeth |
Text string specifying the “classification method”.
If |
legPos |
A list with entries |
... |
Optional extra arguments for |
If cMeth
is "none"
then no value is returned.
Otherwise the value is the data
component of the
x
argument of this function, augmented by an extra
column groups
. This column is a factor that specifies
the component to which each point has been assigned. This data
frame also has an attribute "cMeth"
, the value of the
cMeth
argument.
Rolf Turner r.turner@auckland.ac.nz
plot.cband()
, plot.mixresid()
,
qqMix()
,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | thStrt <- list(
list(beta=c(26.07,48808),sigsq=1.1573,lambda=0.33333333),
list(beta=c(23.48,32387),sigsq=1.8730,lambda=0.33333333),
list(beta=c(-0.0597,20760),sigsq=0.2478,lambda=0.33333333)
)
kfit <- mixreg(y ~ x,ncomp=3,data=kilnAoneOut,thetaStart=thStrt)
plot(kfit,pch=8,col=c("red","green","blue","black"))
plot(kfit,pch=8,col=c("green","blue","black"),cMeth="d")
plot(kfit,pch=8,col=c("green","blue","black"),cMeth="p")
afit <- mixreg(plntsInf ~ aphRel,data=aphids,ncomp=2)
plot(afit,cMeth="p",col=c("blue","red"),pch=20)
# Separates the points into two groups incredibly clearly!
npfit <- mixreg(plntsInf ~ 1, data=aphids,ncomp=2)
plot(npfit,cMeth="p",col=c("blue","red"),pch=20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.