View source: R/function_SumSLCClasses.R
SumSLCClasses | R Documentation |
SumSLCClasses
sums all SLC classes for each SUBID in a GeoData data frame and optionally plots the results.
SumSLCClasses(gd, plot.box = TRUE, silent = FALSE, ...)
gd |
Data frame containing columns with SLC fractions, typically a 'GeoData.txt' file imported with |
plot.box |
Logical, if |
silent |
Logical, if set to |
... |
Other arguments to be passed to |
SumSLCClasses
is a wrapper for colSums
with a boxplot output option, and allows to quickly control if SLCs of all SUBIDs in a
GeoData data frame sum up to 1.
SumSLCClasses
returns a vector of SLC sums, invisibly if plot.box
is TRUE
.
te <- ReadGeoData(filename = system.file("demo_model", "GeoData.txt", package = "HYPEtools"))
SumSLCClasses(gd = te, plot.box = TRUE)
SumSLCClasses(gd = te, plot.box = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.