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