plotDimRed | R Documentation |
Plot results either on already run results of reduced dimensions data.
plotDimRed( inSCE, colorBy = "No Color", shape = "No Shape", reducedDimName = NULL, useAssay = "logcounts", comp1 = NULL, comp2 = NULL, pcX = NULL, pcY = NULL )
inSCE |
Input SCtkExperiment object with saved dimension reduction components or a variable with saved results. Required |
colorBy |
color by a condition(any column of the annotation data). |
shape |
add shapes to each condition. |
reducedDimName |
saved dimension reduction name in the SCtkExperiment object. Required. |
useAssay |
Indicate which assay to use. The default is "logcounts" |
comp1 |
label for x-axis |
comp2 |
label for y-axis |
pcX |
PCA component to be used for plotting(if applicable). Default is first PCA component for PCA data and NULL otherwise. |
pcY |
PCA component to be used for plotting(if applicable). Default is second PCA component for PCA data and NULL otherwise. |
a ggplot of the reduced dimensions.
plotDimRed(inSCE = mouseBrainSubsetSCE, colorBy = "No Color", shape = "No Shape", reducedDimName = "TSNE_counts", useAssay = "counts", comp1 = "tSNE1", comp2 = "tSNE2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.