samplePCA: Sample PCA Plot

Description Usage Arguments Value

View source: R/pca_mds.R

Description

Produce a PCA plot from a matrix using ggplot2

Usage

1
samplePCA(data, top = nrow(data), groups = colnames(data), plot = TRUE)

Arguments

data

Matrix of data to plot

top

Number of rows with highest variance to select for plotting

groups

Vector of groups assigned to sample columns

plot

Boolean, if true return plot, if false return plot data

Value

ggplot2 object containing the PCA plot, or the dataframe of plot data


lazappi/RNAtools documentation built on May 20, 2019, 8:26 p.m.