plotCorrelations {miceRanger} | R Documentation |
plotCorrelations
Description
Plot the correlation of imputed values between every combination of datasets for each variable.
Usage
plotCorrelations(
miceObj,
vars = names(miceObj$callParams$vars),
factCorrMetric = "CramerV",
numbCorrMetric = "pearson",
...
)
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' |
factCorrMetric |
The correlation metric for categorical variables. Can be one of:
|
numbCorrMetric |
The correlation metric for numeric variables. Can be one of:
|
... |
Other arguments to pass to ggarrange() |
Value
an object of class ggarrange
.
Examples
data("sampleMiceDefs")
plotCorrelations(sampleMiceDefs)