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

Automatically group by .imp if group = NULL in ggmice() #133

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

Automatically group by .imp if group = NULL in ggmice() #133

hanneoberman opened this issue Dec 7, 2023 · 2 comments · May be fixed by #136
Assignees
Labels
enhancement New feature or request workinprogress

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, group = .imp)) + 
  geom_density() 

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

@hanneoberman hanneoberman added the enhancement New feature or request label Dec 7, 2023
@hanneoberman
Copy link
Member Author

If data is mids, and group inside aes() is NULL, then set group = .imp

@hanneoberman
Copy link
Member Author

@pepijnvink pepijnvink self-assigned this Dec 7, 2023
@pepijnvink pepijnvink linked a pull request Dec 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request workinprogress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants