hist.CAMAN.object {CAMAN} | R 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 |

`nbreaks` |
Number of breaks in histogram. Defaults to |

`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 |

`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 |

### 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*version 0.78 Index]