plotDimRed: Create dimension reduction plot

View source: R/umapClustering.R

plotDimRedR Documentation

Create dimension reduction plot

Description

Create dimension reduction plot

Usage

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

Arguments

plotDf

data for dimension reduction 2D 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

dotZoom

dot size zooming factor. Default: 0

Value

A plot as ggplot object

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

BIONF/PhyloProfile documentation built on Dec. 23, 2024, 4:23 a.m.