R/plotDimRed.R
plotDimRed.Rd
Plot dimensionality reduction from computed metrics including PCA, ICA, tSNE and UMAP
plotDimRed(
inSCE,
useReduction,
showLegend = FALSE,
xDim = 1,
yDim = 2,
xAxisLabel = NULL,
yAxisLabel = NULL
)
Input SCE object
Reduction to plot
If legends should be plotted or not
Numeric value indicating the dimension to use for X-axis. Default is 1 (refers to PC1).
Numeric value indicating the dimension to use for Y-axis. Default is 2 (refers to PC2).
Specify the label for x-axis. Default is NULL
which
will specify the label as 'x'.
Specify the label for y-axis. Default is NULL
which
will specify the label as 'y'.
plot object
data("mouseBrainSubsetSCE", package = "singleCellTK")
plotDimRed(mouseBrainSubsetSCE, "PCA_logcounts")