Nothing
#'
#' sumGroups.Spectra
#'
#' @author `r .writeDoc_Authors("BH")`
#' @noRd
#' @export
#'
sumGroups.Spectra <- function(spectra) {
.chkArgs(mode = 11L)
chkSpectra(spectra)
gr.l <- levels(spectra$group)
count <- length(gr.l)
g.sum <- data.frame(group = NA, no. = NA, color = NA, symbol = NA, alt.sym = NA)
for (n in 1:count) {
gi <- match(gr.l[n], spectra$groups)
gr <- gr.l[n]
no. <- length(which(gr == spectra$groups))
col <- spectra$colors[gi]
sym <- spectra$sym[gi]
asym <- spectra$alt.sym[gi]
g.sum <- rbind(g.sum, data.frame(
group = gr, no. = no., color = col,
symbol = sym, alt.sym = asym
))
}
g.sum <- g.sum[-1, ]
g.sum <- subset(g.sum, no. > 0) # drop groups with no members
rownames(g.sum) <- c(1:nrow(g.sum))
return(g.sum)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.