reducedDimPlot {karyotapR} | R Documentation |
Scatter plot for dimensional reduction results
Description
Plots a scatter plot of the indicated dimensional reduction results.
Usage
reducedDimPlot(
TapestriExperiment,
alt.exp = "alleleFrequency",
dim.reduction,
dim.x = 1,
dim.y = 2,
group.label = NULL
)
Arguments
TapestriExperiment |
|
alt.exp |
Character, |
dim.reduction |
Character, dimension reduction to plot, either "PCA" or "UMAP". |
dim.x |
Numeric, index of dimensional reduction data to plot on X axis. Default 1. |
dim.y |
Numeric, index of dimensional reduction data to plot on Y axis. Default 2. |
group.label |
Character, |
Value
ggplot2 object, scatter plot
Examples
tap.object <- newTapestriExperimentExample() # example TapestriExperiment object
tap.object <- runPCA(tap.object, alt.exp = "alleleFrequency")
reducedDimPlot(tap.object, dim.reduction = "pca")
[Package karyotapR version 1.0.1 Index]