View source: R/umapClustering.R
createDimRedPlotData | R Documentation |
Generate data for dimension reduction plot
createDimRedPlotData(dimRedCoord = NULL, data4dimRed = NULL,
freqCutoff = c(0,200), excludeTaxa = "None", currentNCBIinfo = NULL)
dimRedCoord |
data contains DIM reduction coordinates (from dimReduction) |
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] |
excludeTaxa |
hide taxa from plot. Default: "None" |
currentNCBIinfo |
table/dataframe of the pre-processed NCBI taxonomy data (/PhyloProfile/data/preProcessedTaxonomy.txt) |
A plot as ggplot object
Vinh Tran tran@bio.uni-frankfurt.de
prepareDimRedData
, dimReduction
rawInput <- system.file(
"extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
data4dimRed <- prepareDimRedData(longDf, "phylum")
dimRedCoord <- dimReduction(data4dimRed)
createDimRedPlotData(dimRedCoord, data4dimRed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.