plotMissings-methods: It draws a chart with the percentage of missing in an...

plotMissingsR Documentation

It draws a chart with the percentage of missing in an ExposomeSet

Description

This function can be used to draw the number of missing data in exposures and in phenotypes of an ExposomeSet.

Usage

plotMissings(object, set, x.max = 100, sort = TRUE)

Arguments

object

ExposomeSet which exposome will be plotted.

set

Can be set to "exposures" or to "phenotypes".

x.max

(default 100) Fix the maxium value of the X-axis.

sort

(default TRUE) If TRUE the chart will be ordered from the features with less missing data to the ones with more missing data.

Value

A ggplot object.

See Also

plotFamily to draw the profile of a family of exposures, plotHistogram to draw the shape of an exposure, tableMissings to get a table with the missing data of an ExposomeSet, imputation to impute missing data on the exposures of an ExposomeSet

Examples

data("exposome")
# The included has no missing data
plotMissings(expo, set = "exposures")
plotMissings(expo, set = "phenotypes")

isglobal-brge/rexposome documentation built on Feb. 4, 2023, 12:35 p.m.