createUmapPlotData: Create UMAP cluster plot

View source: R/umapClustering.R

createUmapPlotDataR Documentation

Create UMAP cluster plot

Description

Create UMAP cluster plot

Usage

createUmapPlotData(umapData = NULL, data4umap = NULL, 
    freqCutoff = c(0,200), excludeTaxa = "None")

Arguments

umapData

data contains UMAP cluster (output from umapClustering())

data4umap

data for UMAP clustering (output from prepareUmapData())

freqCutoff

gene/taxon frequency cutoff range. Any labels that are outside of this range will be assigned as [Other]

excludeTaxa

hide taxa from plot. Default: "None"

Value

A plot as ggplot object

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

prepareUmapData, umapClustering

Examples

rawInput <- system.file(
   "extdata", "test.main.long", package = "PhyloProfile", mustWork = TRUE
)
longDf <- createLongMatrix(rawInput)
data4umap <- prepareUmapData(longDf, "phylum")
umapData <- umapClustering(data4umap)
createUmapPlotData(umapData, data4umap)

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