pca: Plot top four principle components in a counts matrix colored...

Description Usage Arguments Value

View source: R/plots.R

Description

Plot top four principle components in a counts matrix colored with a class variable, useful to see how well a gene subset of a counts matrix can classify the data

Usage

1
pca(counts, class, multiple = FALSE, ...)

Arguments

counts

A counts matrix

class

A vector of assigned class for each sample e.g. "disease" or "control"

multiple

If true plots PC1~PC2 from multiple subsets of the data hoping that the PCA segregation improves at each subset.

Value

A grid of ggplot2 plots


ahmedelmahy/RNASeqclassifier1 documentation built on May 25, 2019, 2:24 p.m.