plot_pcaR Documentation

Plot PCA

Description

Plot projections of samples onto the principal components for a set of RNA-Seq experiments

Usage

plot_pca(obj, pc_x = 1L, pc_y = 2L, use_filtered = TRUE,
  units = "est_counts", text_labels = FALSE, color_by = NULL,
  point_size = 3, point_alpha = 0.8, ...)

Arguments

obj

a sleuth object

pc_x

integer denoting the principle component to use for the x-axis

pc_y

integer denoting the principle component to use for the y-axis

use_filtered

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

units

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

text_labels

if TRUE, use text labels instead of points

color_by

a variable to color by. if NA, then will leave all as 'black'

Value

a gpplot object