plotDistributions function

plotDistributions

plotDistributions

Plots the distribution of the original data beside the imputed data.

plotDistributions( miceObj, vars = names(miceObj$callParams$vars), dotsize = 0.5, ... )

Arguments

  • miceObj: an object of class miceDefs, created by the miceRanger function.
  • vars: the variables you want to plot. Default is to plot all variables. Can be a vector of variable names, or one of 'allNumeric' or 'allCategorical'
  • dotsize: Passed to geom_dotplot(). Depending on the number of graphs plotted, you may want to change the dot size for categorical variables.
  • ...: additional parameters passed to ggarrange().

Returns

an object of class ggarrange.

Examples

data("sampleMiceDefs") plotDistributions(sampleMiceDefs)
  • Maintainer: Sam Wilson
  • License: MIT + file LICENSE
  • Last published: 2021-09-06