PlotMissingvalues: Plot of the Amount Of Missing Values

PlotMissingvaluesR Documentation

Plot of the Amount Of Missing Values

Description

Percentage of missing values per feature are visualized as a bar plot.

Usage

PlotMissingvalues(Data,Names,

WhichDefineMissing=c('NA','NaN','DUMMY','.',' '),

PlotIt=TRUE,

xlab='Amount Of Missing Values in Percent',

xlim=c(0,100),...)

Arguments

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 barplot, such as main for title

Value

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.

Note

Does not work with the tibble format, in such a case please call as.data.frame(as.matrix(Data))

Author(s)

Michael Thrun

Examples

data("ITS")
data("MTY")

PlotMissingvalues(cbind(ITS,MTY),Names=c('ITS','MTY'))


DataVisualizations documentation built on Oct. 10, 2023, 9:06 a.m.