I am having problem while plotting missing/imputed values. When I try to run this code: (demo is the name of the dataset)
mice_plot <- aggr(demo, col=c('navyblue','yellow'),
numbers=TRUE, sortVars=TRUE,
labels=names(demo), cex.axis=.7,
gap=3, ylab=c("Missing data","Pattern"))
I get the following error:
Error in as.matrix.data.frame(X) :
dims [product 284088] do not match the length of object [284121]
Please help. what does this mean?