Learn R Programming

Rmixmod (version 2.1.1)

hist: Histograms of a class ['>Mixmod]

Description

Histograms of quantitative data from a ['>Mixmod] object using parameters to plot densities.

Arguments

x

an object of class ['>Mixmod]

variables

list of variables names (or indices) to compute a histogram. All variables from data by default.

...

further arguments passed to or from other methods

Details

Data with the density of each cluster and the mixture density are drawn for each variable.

See Also

hist

Examples

Run this code
# NOT RUN {
data(iris)
  xem <- mixmodCluster(iris[1:4],3)
  hist(xem)
  hist(xem,variables=c(1,3))
  hist(xem,variables=c("Sepal.Length","Sepal.Width"))
# }

Run the code above in your browser using DataLab