PlotMissingvalues | R Documentation |
Percentage of missing values per feature are visualized as a bar plot.
PlotMissingvalues(Data,Names,
WhichDefineMissing=c('NA','NaN','DUMMY','.',' '),
PlotIt=TRUE,
xlab='Amount Of Missing Values in Percent',
xlim=c(0,100),...)
Data |
[1:n,1:d] data cases in rows, variables/features in columns |
Names |
[1:d] optional vector of string describing the names of the features |
WhichDefineMissing |
[1:d] optional vector of string describing missing values, usefull for character features. Currently up to five different options are possible. |
PlotIt |
If FALES: Does not plot |
xlab |
x label of bar plot |
xlim |
x axis limits in percent |
... |
Further arguments passed on to |
plots not finite and missing values as a bar plot for each feature d
and returns with invisible
the amount of missing values as a vector. Works even with character variables, but WhichDefineMissing cannot be changed at the current version. Please make a suggestion on GitHub how to improve this.
Does not work with the tibble format, in such a case please call as.data.frame(as.matrix(Data))
Michael Thrun
data("ITS")
data("MTY")
PlotMissingvalues(cbind(ITS,MTY),Names=c('ITS','MTY'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.