Shows the explained variance for a reduction for selecting how many dimensions to use downstream

# S3 method for variance
plot(object, assay, reduction, ...)

Arguments

object

IBRAP S4 class object

assay

Character. String containing indicating which assay to use

reduction

Character. Which reductions to access within the supplied assays

...

Arguments to be passed to ggpubr::ggarrange

Value

Plots showing the supplied reductions explained variance

Examples


object <- plot.variance(object = object, 
                        assay = c('SCT', 'SCRAN', 'SCANPY'), 
                        reduction = 'pca')
#> Error in is(object = object, class2 = "IBRAP"): object 'object' not found