barplotCluster {Rmixmod} | R Documentation |
MixmodResults
]Barplot of qualitative data object using parameters from a [MixmodResults
]
to plot probablities of modalities.
barplotCluster(x, data, variables = colnames(data), main = paste("Barplot of", variables), ...)
x |
an object of class [ |
data |
a vector or data frame containing a qualitative data set. |
variables |
list of variables names (or indices) to compute a barplot. All variables from data by default. |
main |
a list of title for the barplot. main must have the same length than variables. |
... |
further arguments passed to or from other methods |
Each line corresponds to one variable. A barplot is drawn for each cluster with the probabilities for each modality to be in that cluster.
data(birds) xem <- mixmodCluster(birds,2) barplotCluster(xem["bestResult"], birds) barplotCluster(xem["bestResult"], birds, variables=c(2,3,4)) barplotCluster(xem["bestResult"], birds, variables=c("eyebrow","collar"))