ggPCAplot: Microarray sample PCA plot

View source: R/transcrProc.R

ggPCAplotR Documentation

Microarray sample PCA plot

Description

Creates a PCA plot from a microarray object with 'exprs()' such as an ExpressionSet

Usage

ggPCAplot(object, pc = c(1, 2), groupvar, scale = TRUE, interactive = TRUE)

Arguments

object

Microarray data from a ExpressionSet or GeneFeatureSet

pc

A vector of length two indicanting the principal components to plot on each axis

groupvar

A numeric indicating the column to use as grouping factor or a character indicating it's name

scale

A boolan indicating if the PCA will be scaled, (the default is TRUE).

interactive

A boolean indicating if the plot will be converted to an interactive 'ggplotly()'

Value

Returns a ggplot object or a ggplotly

Author(s)

Jordi Rofes Herrera


jordirofes/OmniOmics documentation built on Nov. 22, 2022, 5:46 a.m.