Description Usage Arguments Value Examples
Plot PCA run data from its components.
1 2 3 4 5 6 7 8 9 10 |
inSCE |
Input SingleCellExperiment object. |
colorBy |
The variable to color clusters by |
shape |
Shape of the points |
pcX |
User choice for the first principal component |
pcY |
User choice for the second principal component |
reducedDimName |
a name to store the results of the dimension reduction coordinates obtained from this method. This is stored in the SingleCellExperiment object in the reducedDims slot. Required. |
runPCA |
Run PCA if the reducedDimName does not exist. the Default is FALSE. |
useAssay |
Indicate which assay to use. The default is "logcounts". |
A PCA plot
1 2 3 | data("mouseBrainSubsetSCE")
plotPCA(mouseBrainSubsetSCE, colorBy = "level1class",
reducedDimName = "PCA_counts")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.