plotScree: plotScree

View source: R/plotScree.R

plotScreeR Documentation

plotScree

Description

Plots the variance explained by the different principal components

Usage

plotScree(scCNA, ncomponents = 20)

Arguments

scCNA

The CopyKit object

ncomponents

Number of principal components to plot.

Value

A ggplot object with The variance explained per principal component.

Examples

set.seed(1000)
copykit_obj <- copykit_example_filtered()[,sample(400)]
copykit_obj <- runPca(copykit_obj)
plotScree(copykit_obj)


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