Graphical display of the data and the mixture. Intended for larger data sets.
# S3 method for CAMAN.object
hist(x, nbreaks=NULL, mixdens=TRUE, mixdens.col="red",
return.mixdens=FALSE, data.plot=NULL, singleDistr=TRUE,
main="", xlab="", plotlegend=TRUE, ...)
The function plots a histogram with the mixture density and its components overlaid. If return.mixdens
is set to TRUE
, the density at the breaks will also be returned.
A CAMAN.object
.
Number of breaks in histogram. Defaults to NULL
. In this case it is set to min(60,max(30,x@num.obs))
. Passed on to hist
.
logical; plot mixture density?
color of mixture density.
logical; return the mixture density?
data to plot. Defaults to NULL
. In this case it is taken from the data of the mixture density.
logical; should the distributions of the single components be plotted?
character; heading of the plot.
character; label of x-axis.
logical; should a legend be plotted.
arguments to be passed on to hist
.
Peter Schlattmann and Johannes Hoehne
Schlattmann, P. (2009). Medical Applications of Finite Mixture Models. Berlin: Springer.