pcaPlot: Simple PCA analysis

Description Usage Arguments Value

View source: R/data_visualization.R

Description

Performs a principal component analysis of a normalized expression/abundance matrix and plot the samples in the bidimensional space formed by the two first principal components. Samples are colored according to the variable of interest in the sample information data frame.

Usage

1
pcaPlot(mat, sampInfo, groupCol)

Arguments

mat

The input matrix containing normalized data or counts

sampInfo

The sample information data frame

groupCol

The column name of the grouping variable

Value

A ggplot2 object containing the resulting plot


martingarridorc/biokit documentation built on June 28, 2021, 12:24 a.m.