The main function, plot_mm(), is used for (gg)plotting output from mixture models, including both densities and overlaying mixture weight component curves from the fit models in line with the tidy principles. The package includes several additional functions for added plot customization. Supported model objects include: 'mixtools', 'EMCluster', and 'flexmix', with more from each in active dev. Supported mixture model specifications include mixtures of univariate Gaussians, multivariate Gaussians, Gammas, logistic regressions, linear regressions, and Poisson regressions.
title: "README" author:
In collaboration with Fong Chan (Achilles Therapeutics) and Lu Zhang (University of Chicago), we have developed plotmm for tidy visualization of mixture models. This package is a substantial update to the plotGMM package.
Load the latest version:
devtools::install_github("pdwaggoner/plotmm")
library(plotmm)
Load the latest stable (CRAN) version:
install.packages("plotmm")
library(plotmm)
To get started, read the "Getting Started" vignette, which includes a few basic examples.
Anyone is welcome to contribute to the package. Before collaborating, please take a look at and abide by the contributor code of conduct. Here's a sampling of how to contribute:
Submit an issue reporting a bug, requesting a feature enhancement, etc.
Suggest changes directly via pull request
Reach out directly with ideas if you're uneasy with public interaction