powered by
This function plots an estimated bivariate contour mixing distributions.
plot_mixture_contour(means, covs, weights, names)
An object of class ggplot.
ggplot
The class means.
The class covariances.
The class weights.
The covariate names.
means <- list(c(0, 0), c(2, 2)) covs <- list(diag(2), 0.5 * diag(2)) weights <- c(0.7, 0.3) names <- c("A", "B") plot_mixture_contour(means, covs, weights, names)
Run the code above in your browser using DataLab