View source: R/umapClustering.R
groupLabelDimRedData | R Documentation |
Reduce the number of labels for DIM reduction plot based on the gene/taxon frequency
groupLabelDimRedData(data4dimRed = NULL, freqCutoff = c(0,200))
data4dimRed |
data for dimension reduction (from prepareDimRedData) |
freqCutoff |
gene/taxon frequency cutoff range. Any labels that are outside of this range will be assigned as [Other] |
A dataframe similar to input data4dimRed, but with modified Label column, where less frequent labels are grouped together as "Other"
Vinh Tran tran@bio.uni-frankfurt.de
prepareDimRedData
rawInput <- system.file(
"extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
data4dimRed <- prepareDimRedData(longDf, "phylum")
groupLabelDimRedData(data4dimRed, freqCutoff = c(3,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.