Tidy Tools for Visualizing Mixture Models

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:

  • Philip D. Waggoner^[YouGov and Columbia University]
  • Fong Chun Chan^[Achilles Therapeutics]
  • Lu Zhang^[University of Chicago]

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.

Install

Load the latest version:

devtools::install_github("pdwaggoner/plotmm")

library(plotmm)

Load the latest stable (CRAN) version:

install.packages("plotmm")

library(plotmm)

Getting Started

To get started, read the "Getting Started" vignette, which includes a few basic examples.

Contribute

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("plotmm")

0.1.2 by Philip Waggoner, 2 years ago


Report a bug at https://github.com/pdwaggoner/plotmm/issues


Browse source code at https://github.com/cran/plotmm


Authors: Philip Waggoner [aut, cre] , Fong Chan [aut, ctb] , Lu Zhang [aut, ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports methods, wesanderson, amerika, ggplot2, mixtools, EMCluster, flexmix

Suggests testthat, graphics, dplyr, patchwork, survival, magrittr, knitr, rmarkdown


See at CRAN