pcaplot: Display a PCA Plot of the Data

View source: R/misc_functions.R

pcaplotR Documentation

Display a PCA Plot of the Data

Description

Display a PCA Plot of the Data

Usage

pcaplot(mat, sub, center = TRUE, scale = TRUE, plottitle = "PCA")

Arguments

mat

The data frame on which to perform pca.

sub

The number of samples in this batch, from left to right in the data frame

center

a logical value indicating whether the variables should be shifted to be zero centered. The default is TRUE

scale

a logical value indicating whether the variables should be scaled to have unit variance before the analysis takes place. The default is TRUE

plottitle

The title to display above your PCA plot. The default is "PCA".

Value

A PCA plot is displayed


compbiomed/ASSIGN documentation built on June 28, 2023, 4 a.m.