R/plotDR.R
plotDR.Rd
Compute and plot the results of any dimension reduction methods on gene expression data
plotDR(object, dims = c(1, 2), ...)
# S4 method for SingleCellExperiment
plotDR(object, dims, dimred = "PCA", textScale = 1, ...)
# S4 method for SpatialExperiment
plotDR(object, dims, dimred = "PCA", textScale = 1, ...)
a DGEList, SummarizedExperiment or ExpressionSet object containing gene expression data.
a numeric, containing 2 values specifying the dimensions to plot.
aesthetic mappings to pass to ggplot2::aes_string()
.
a string or integer scalar indicating the reduced dimension
result in reducedDims(object)
to plot.
a numeric, specifying the relative scale factor to apply to text on the plot.
a ggplot2 object