Learn R Programming

sleuth (version 0.30.0)

plot_pc_variance: Plot PC Variance

Description

Plot PC variances retained by percentage with option to compare specified PC

Usage

plot_pc_variance(obj, use_filtered = TRUE, units = "est_counts",
  pca_number = NULL, scale = FALSE, PC_relative = NULL, ...)

Arguments

obj

a sleuth object

use_filtered

if TRUE, use filtered data. otherwise, use all data

units

either 'est_counts' ('scaled_reads_per_base' for gene_mode) or 'tpm'

pca_number

user input on how many PC to display, otherwise default is 5

scale

determines scaling

PC_relative

gives the option to compare subsequent principal components and their contributions

Value

a ggplot object