Description Usage Arguments Details Author(s) See Also Examples
This function plots the mixture pdf, the estimated data pdf and the weighted pdfs of all components of the given mixture model. The plot is useful to assess the fit of the model.
1 | plotComponents(object, density = FALSE, ...)
|
object |
A |
density |
A logical indicating whether the data distribution should be plotted as histogram (FALSE) or as density (TRUE) estimated using kernel density estimation. |
... |
Further arguments passed to |
If the argument "col" is given, the first color is used for the mixture
pdf. The following colors (2 to n+1) are used for the n mixture components'
pdfs. If density
is set to TRUE
, a further color (n+2) must be
given, that is used for the data pdf. The same applies for the argument "lty",
which can be given to specify the line type used to plot the densities.
Hans-Ulrich Klein (h.klein@uni-muenster.de)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.