plotUmap: Create UMAP cluster plot

View source: R/umapClustering.R

plotUmapR Documentation

Create UMAP cluster plot

Description

Create UMAP cluster plot

Usage

plotUmap(plotDf = NULL, legendPos = "bottom", colorPalette = "Set2", 
    transparent = 0, textSize = 12, font = "Arial", highlightTaxa = NULL)

Arguments

plotDf

data for UMAP plot

legendPos

position of legend. Default: "right"

colorPalette

color palette. Default: "Set2"

transparent

transparent level (from 0 to 1). Default: 0

textSize

size of axis and legend text. Default: 12

font

font of text. Default = Arial"

highlightTaxa

list of taxa to be highlighted

Value

A plot as ggplot object

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)
plotUmap(plotDf, font = "sans")

BIONF/PhyloProfile documentation built on Sept. 25, 2024, 4:46 p.m.