drawPCA | R Documentation |
Compute and plot the results of a PCA analysis on gene expression data
drawPCA(object, dims = c(1, 2), ...)
## S4 method for signature 'ExpressionSet'
drawPCA(object, dims = c(1, 2), precomputed = NULL, textScale = 1, ...)
## S4 method for signature 'SummarizedExperiment'
drawPCA(
object,
dims = c(1, 2),
assay = 1,
precomputed = NULL,
textScale = 1,
...
)
## S4 method for signature 'SingleCellExperiment'
drawPCA(
object,
dims = c(1, 2),
assay = 1,
precomputed = NULL,
textScale = 1,
...
)
## S4 method for signature 'SpatialExperiment'
drawPCA(
object,
dims = c(1, 2),
assay = 1,
precomputed = NULL,
textScale = 1,
...
)
object |
a DGEList, SummarizedExperiment or ExpressionSet object containing gene expression data. |
dims |
a numeric, containing 2 values specifying the dimensions to plot. |
... |
aesthetic mappings to pass to |
precomputed |
a dimensional reduction results from |
textScale |
a numeric, specifying the relative scale factor to apply to text on the plot. |
assay |
a numeric or character, specifying the assay to use (for
|
a ggplot2 object
data("dkd_spe_subset")
drawPCA(dkd_spe_subset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.