Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set ggmice() default fill to mice colors #134

Open
hanneoberman opened this issue Dec 7, 2023 · 2 comments · May be fixed by #142
Open

Set ggmice() default fill to mice colors #134

hanneoberman opened this issue Dec 7, 2023 · 2 comments · May be fixed by #142

Comments

@hanneoberman
Copy link
Member

library(ggmice)
library(mice)
#> Warning: package 'mice' was built under R version 4.3.1
#> 
#> Attaching package: 'mice'
#> The following objects are masked from 'package:ggmice':
#> 
#>     bwplot, densityplot, stripplot, xyplot
#> The following object is masked from 'package:stats':
#> 
#>     filter
#> The following objects are masked from 'package:base':
#> 
#>     cbind, rbind
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.3.2
ggmice(mice(nhanes, print = FALSE), aes(bmi)) + 
    geom_histogram() 
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

Created on 2023-12-07 with reprex v2.0.2

@hanneoberman hanneoberman linked a pull request Jan 22, 2024 that will close this issue
@hanneoberman hanneoberman linked a pull request Jan 22, 2024 that will close this issue
@hanneoberman
Copy link
Member Author

This would not get the expected density plots, which would then require adding aes(fill = NULL) to geom_density()

@hanneoberman
Copy link
Member Author

Consider importing ggplot2 functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant