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