Giter Club home page Giter Club logo

ggmice's Introduction

ggmice

CRAN_Status_Badge Total CRAN downloads DOI

GitHub R package version Lifecycle: experimental R-CMD-check

Visualizations for mice with ggplot2

Enhance a mice imputation workflow with visualizations for incomplete and/or imputed data. The ggmice functions produce ggplot objects which may be easily manipulated or extended. Use ggmice to inspect missing data, develop imputation models, evaluate algorithmic convergence, or compare observed versus imputed data.

Installation

You can install the latest ggmice release from CRAN with:

install.packages("ggmice")

Alternatively, you could install the development version of ggmice from GitHub with:

# install.packages("devtools")
devtools::install_github("amices/ggmice")

Example

Inspect the missing data in an incomplete dataset and subsequently evaluate the imputed data points against observed data. See the Get started vignette for an overview of all functionalities. Example data from mice.

# load packages
library(ggplot2)
library(mice)
library(ggmice)
# load some data
dat <- boys
# visualize the incomplete data
ggmice(dat, aes(age, bmi)) + geom_point()

# impute the incomplete data
imp <- mice(dat, m = 1, seed = 1, printFlag = FALSE)
# visualize the imputed data
ggmice(imp, aes(age, bmi)) + geom_point() 

Acknowledgements

The ggmice package is developed with guidance and feedback from Gerko Vink, Stef van Buuren, Thomas Debray, Valentijn de Jong, Johanna Muñoz, Thom Volker, Mingyang Cai and Anaïs Fopma. The ggmice hex is based on designs from the ggplot2 hex and the mice hex (by Jaden Walters).

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under ReCoDID grant agreement No 825746.

Code of Conduct

You are invited to join the improvement and development of ggmice. Please note that the project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

licence Codecov test coverage CII Best Practices fair-software.eu

ggmice's People

Contributors

hanneoberman avatar gerkovink avatar thomvolker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.