plotHistogram-methods: It draws a histogram for each exposure in an ExposomeSet

plotHistogramR Documentation

It draws a histogram for each exposure in an ExposomeSet

Description

It draws a grid with an histogram per exposure in an ExposomeSet.

Usage

plotHistogram(x, select, density = TRUE, show.trans = FALSE)

Arguments

x

ExposomeSet which exposome will be plotted.

select

Name fo the exposure to be plotted. If missing, all exposures will be used.

density

(default TRUE) If TRUE a density plot is drawn overlapping the histogram.

show.trans

(default FALSE) If set to TRUE it will draw a panel of auxiliar plots with the continuous exposure transformed with log and sqrt.

Value

A ggplot object.

See Also

plotFamily to draw the profile of a family of exposures, plotMissings to plot the missing data from an ExposomeSet

Examples

data("exposome")
plotHistogram(expo[1:3, ], select = "ldde_lip")

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