plotPca: plotPca

View source: R/plotPca.R

plotPcaR Documentation

plotPca

Description

Plots PCA embedding stored in reducedDim slot.

Usage

plotPca(scCNA, embedding = "PCA", label = NULL)

Arguments

scCNA

The CopyKit object.

embedding

String with the name of the reducedDim to pull data from.

label

A string with the elements from colData to color the umap points.

Details

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.

Value

A ggplot object containing the reduced dimensions UMAP plot.

Author(s)

Darlan Conterno Minussi

Examples

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")


navinlabcode/copykit documentation built on Sept. 22, 2023, 9:16 a.m.