powered by
SumSLCClasses sums all SLC classes for each SUBID in a GeoData data frame and optionally plots the results.
SumSLCClasses
SumSLCClasses(gd, plot.box = TRUE, silent = FALSE, ...)
SumSLCClasses returns a vector of SLC sums, invisibly if plot.box is TRUE.
plot.box
TRUE
Data frame containing columns with SLC fractions, typically a 'GeoData.txt' file imported with ReadGeoData.
ReadGeoData
Logical, if TRUE, a box plot of SLC area sums is returned.
Logical, if set to TRUE, the default printing of a result summary is suppressed.
Other arguments to be passed to boxplot.
boxplot
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.
colSums
te <- ReadGeoData(filename = system.file("demo_model", "GeoData.txt", package = "HYPEtools")) SumSLCClasses(gd = te, plot.box = TRUE) SumSLCClasses(gd = te, plot.box = FALSE)
Run the code above in your browser using DataLab