Learn R Programming

Rmixmod (version 2.0.3)

barplot: Barplot of a class [Mixmod]

Description

Barplot of qualitative data from a [Mixmod] object using parameters to plot probablities of modalities.

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

Each line corresponds to one variable. Barplot is drawn for each cluster with the probabilities for each modality to be in that cluster.

See Also

barplot

Examples

Run this code
data(birds)
  xem2 <- mixmodCluster(birds,2)
  barplot(xem2)
  barplot(xem2,variables=c(2,3,4))
  barplot(xem2,variables=c("eyebrow","collar"))

Run the code above in your browser using DataLab