View source: R/umapClustering.R
addDimRedTaxaColors | R Documentation |
Add colors for taxa in dimension reduction plot
addDimRedTaxaColors(plotDf = NULL, colorPalette = "Set2",
highlightTaxa = NULL)
plotDf |
data for dimension reduction plot |
colorPalette |
color palette. Default: "Set2" |
highlightTaxa |
list of taxa to be highlighted |
A dataframe for dimension reduction plot with an additional column for the assigned color to each taxon
Vinh Tran tran@bio.uni-frankfurt.de
prepareDimRedData
, dimReduction
,
createDimRedPlotData
rawInput <- system.file(
"extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
data4dimRed <- prepareDimRedData(longDf, "phylum")
dimRedCoord <- dimReduction(data4dimRed)
plotDf <- createDimRedPlotData(dimRedCoord, data4dimRed)
PhyloProfile:::addDimRedTaxaColors(plotDf, colorPalette = "Set2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.