plot_loadings: Plot Loadings and Interpretations

Description Usage Arguments Value

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

1
2
3
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' 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


pachterlab/zika documentation built on May 24, 2019, 5:58 p.m.