plotPca | R Documentation |
Plots PCA embedding stored in reducedDim
slot.
plotPca(scCNA, embedding = "PCA", label = NULL)
scCNA |
The CopyKit object. |
embedding |
String with the name of the reducedDim to pull data from. |
label |
A string with the elements from
|
A reduced dimension representation with UMAP in the slot
reducedDim
from the scCNA object.
Columns from colData
can
be used as an argument for 'label' to color the points on the plot.
A ggplot object containing the reduced dimensions UMAP plot.
Darlan Conterno Minussi
set.seed(1000)
copykit_obj <- copykit_example_filtered()[,sample(300)]
copykit_obj <- runPca(copykit_obj)
plotPca(copykit_obj)
copykit_obj <- findClusters(copykit_obj)
plotPca(copykit_obj, label = "subclones")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.