make.pca: Run a simple Principle Components Analysis

Description Usage Arguments Value

Description

This function is a wrapper for plotting results from prcomp. It takes a matrix of expression values, and some extra info to color and label the individual points (which are presumed to be samples in a gene expression experiment for my purposes).

Usage

1
2
make.pca(expression.matrix, sample.labels, sample.colors = c(),
  title.addition = "")

Arguments

expression.matrix

a matrix of gene expression values

sample.labels

The names which should be drawn over each point in the plot, i.e. the column (sample) names of the expression matrix

sample.colors

Colors for each sample (column) to be plotted

title.addition

A subtitle to put under the main title ("Principle Components Analysis (PCA)")

Value

The results from prcomp()


definitelysean/sgaphd documentation built on May 15, 2019, 3:20 a.m.