plot
and lines
methods for norMix
objects draw the normal mixture density, optionally additonally with a
fitted normal density.## S3 method for class 'norMix':
plot(x, type = "l", n = 511, xout = NULL, xlim = NULL,
xlab = "x", ylab = "f(x)", main = attr(x, "name"), lwd = 1.4,
p.norm = TRUE, p.h0 = TRUE, p.comp = FALSE,
parNorm = list(col = 2, lty = 2, lwd = 0.4),
parH0 = list(col = 3, lty = 3, lwd = 0.4),
parComp = list(col= "blue3", lty = 3, lwd = 0.4), ...)## S3 method for class 'norMix':
lines(x, type = "l", n = 511, xout = NULL,
lwd = 1.4, p.norm = FALSE, parNorm = list(col = 2, lty = 2, lwd = 0.4),
...)
norMix
.lines
.xout
is unspecified.NULL
giving the abscissae at which to
draw the density.xout
is not specified where xlim
is passed to
dnorMix
and gets a smart default if unspecified.norMix
name.p.norm
is true.p.h0
is true.p.comp
is true.norMix
for the construction and further methods,
particularly dnorMix
which is used here.plot(norMix(m=c(0,3),s=c(4,1)))
plot(MW.nm4, p.norm=FALSE, p.comp = TRUE)
## Further examples in ?norMix and ?rnorMix
Run the code above in your browser using DataLab