hist.CAMAN.object: Histograms for finite mixture models

View source: R/CAMAN_plots.R

hist.CAMAN.objectR Documentation

Histograms for finite mixture models

Description

Graphical display of the data and the mixture. Intended for larger data sets.

Usage

## S3 method for class 'CAMAN.object'
hist(x, nbreaks=NULL, mixdens=TRUE, mixdens.col="red", 
                return.mixdens=FALSE, data.plot=NULL, singleDistr=TRUE, 
                main="", xlab="", plotlegend=TRUE, ...)

Arguments

x

A CAMAN.object.

nbreaks

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.

mixdens

logical; plot mixture density?

mixdens.col

color of mixture density.

return.mixdens

logical; return the mixture density?

data.plot

data to plot. Defaults to NULL. In this case it is taken from the data of the mixture density.

singleDistr

logical; should the distributions of the single components be plotted?

main

character; heading of the plot.

xlab

character; label of x-axis.

plotlegend

logical; should a legend be plotted.

...

arguments to be passed on to hist.

Value

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.

Author(s)

Peter Schlattmann and Johannes Hoehne

References

Schlattmann, P. (2009). Medical Applications of Finite Mixture Models. Berlin: Springer.


CAMAN documentation built on Sept. 22, 2023, 5:12 p.m.