Learn R Programming

sleuth (version 0.30.0)

plot_loadings: Plot Loadings and Interpretations

Description

give a principal component, tells you which contribute the most or give a sample, tells you which PC's it contributes to the most

Usage

plot_loadings(obj, use_filtered = TRUE, sample = NULL, pc_input = NULL,
  units = "est_counts", pc_count = NULL, scale = FALSE,
  pca_loading_abs = TRUE, ...)

Arguments

obj

a sleuth object

use_filtered

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

sample

a character string representing the sample to find the loadings of. If NULL, then loadings will be computed across all samples (and `pc_input` must be specified).

pc_input

the principal components to compute loadings for.

units

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

pc_count

# of PC's

scale

scale or not

pca_loading_abs

default true, to see all PC's magnitude (recommended)

Value

a ggplot object