powered by
'>MixmodResults
Histograms of data object using parameters from a ['>MixmodResults] to plot densities.
histCluster(x, data, variables = colnames(data), xlab = rep("", length(variables)), main = paste("Histogram of", variables), hist_x_dim=10000, ...)
an object of class ['>MixmodResults]
a vector or data frame containing a quantitative data set.
list of variables names (or indices) to compute a histogram. All variables from data by default.
a list of title for the x axis. xlab must have the same length than variables.
a list of title for the histogram. main must have the same length than variables.
number of values on the x axis.
further arguments passed to or from other methods
Data with the density of each cluster and the mixture density are drawn for each variable.
hist
# NOT RUN { data(geyser) xem1 <- mixmodCluster(geyser,3) # } # NOT RUN { histCluster(xem1["bestResult"], geyser) # } # NOT RUN { histCluster(xem1["bestResult"], geyser, variables=1) # }
Run the code above in your browser using DataLab