addUmapTaxaColors: Add colors for taxa in UMAP plot

View source: R/umapClustering.R

addUmapTaxaColorsR Documentation

Add colors for taxa in UMAP plot

Description

Add colors for taxa in UMAP plot

Usage

addUmapTaxaColors(plotDf = NULL, colorPalette = "Set2", 
    highlightTaxa = NULL)

Arguments

plotDf

data for UMAP plot

colorPalette

color palette. Default: "Set2"

highlightTaxa

list of taxa to be highlighted

Value

A dataframe for UMAP plot with an additional column for the assigned color to each taxon

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

prepareUmapData, umapClustering, createUmapPlotData

Examples

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")

BIONF/PhyloProfile documentation built on Nov. 2, 2024, 11:44 p.m.