plotFamily | R Documentation |
This function draw a profile of the full exposome into an ExposomeSet or the profile of the exposures in a specific family. For continuous families, box-plots are drawn; while for categorical families accumulative bar-charts.
plotFamily(x, family, group, group2, scatter = TRUE, na.omit = TRUE)
x |
ExposomeSet which exposome will be plotted. |
family |
Name of the familty that will be drawn. |
group |
If set it displays the family grouped by the given phenotype. |
group2 |
If set it displays the family grouped by the given phenotype. |
scatter |
(default |
na.omit |
(default |
A ggplot
object if a family was selected. invisible()
if argument family
was set to "all"
.
plotHistogram to draw the shape of an exposure, plotMissings to plot the missing data from an ExposomeSet
data("exposome") plt <- plotFamily(expo, family = "Metals") plt <- plt + ggplot2::ggtitle("Metals") plt plt <- plotFamily(expo, family = "Indoor air") plt <- plt + ggplot2::ggtitle("Indoor air") plt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.