plotDimRed3D: Create dimension reduction 3D plot

View source: R/umapClustering.R

plotDimRed3DR Documentation

Create dimension reduction 3D plot

Description

Create dimension reduction 3D plot

Usage

plotDimRed3D(plotDf = NULL, legendPos = "bottom",
    colorPalette = "Set2", transparent = 0,highlightTaxa = NULL,
    dotZoom = 0)

Arguments

plotDf

data for dimension reduction 3D plot

legendPos

position of legend. Default: "right"

colorPalette

color palette. Default: "Set2"

transparent

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

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")
dimRedCoord3d <- dimReduction(data4dimRed, dimension = "3d")
plotDf <- createDimRedPlotData(dimRedCoord3d, data4dimRed)
plotDimRed3D(plotDf)

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