addDimRedTaxaColors: Add colors for taxa in dimension reduction plot

View source: R/umapClustering.R

addDimRedTaxaColorsR Documentation

Add colors for taxa in dimension reduction plot

Description

Add colors for taxa in dimension reduction plot

Usage

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

Arguments

plotDf

data for dimension reduction plot

colorPalette

color palette. Default: "Set2"

highlightTaxa

list of taxa to be highlighted

Value

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

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

prepareDimRedData, dimReduction, createDimRedPlotData

Examples

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

BIONF/PhyloProfile documentation built on Dec. 18, 2024, 7:33 a.m.