Learn R Programming

sleuth (version 0.29.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

user input on which sample and which PC's contribute the most

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)

PC

principal component to view sample's contribution to that PC

Value

a ggplot object