powered by
Plots a scatter plot of the indicated dimensional reduction results.
reducedDimPlot( TapestriExperiment, alt.exp = "alleleFrequency", dim.reduction, dim.x = 1, dim.y = 2, group.label = NULL )
ggplot2 object, scatter plot
TapestriExperiment object
TapestriExperiment
Character, altExp to use, NULL uses top-level/main experiment. Default "alleleFrequency".
altExp
NULL
Character, dimension reduction to plot, either "PCA" or "UMAP".
Numeric, index of dimensional reduction data to plot on X axis. Default 1.
Numeric, index of dimensional reduction data to plot on Y axis. Default 2.
Character, colData column for grouping samples by color. Default NULL.
colData
tap.object <- newTapestriExperimentExample() # example TapestriExperiment object tap.object <- runPCA(tap.object, alt.exp = "alleleFrequency") reducedDimPlot(tap.object, dim.reduction = "pca")
Run the code above in your browser using DataLab