PCA.Plotter: PCA.Plotter

Description Usage Arguments Author(s) Examples

Description

Makes the basic PCA plots on a given matrix. Scores and loadings scatterplots of PC1 vs PC2. Centers and UV-scales the variables, makes a 2 component PCA. Supports NAs but requires variance in all variables. Presents R2 for each component. Uses the package "mixOmics". Rownames/colnames are used as point labels.

Usage

1
PCA.Plotter(data.mat)

Arguments

data.mat

a numeric matrix or data frame. Long, wide and squared matrix supported. NAs supported. Variance required for all variables.

Author(s)

Berntsson, Martin <[email protected]> and de Saint-Aubain, Philip Anton <[email protected]>

Examples

1
2
3
4
5
6
set.seed(5)
num.of.variables <- 14
num.of.observations <- 34
rn <- rnorm(num.of.variables * num.of.observations)
data.mat <- matrix(rn, nrow = num.of.observations, ncol = num.of.variables)
PCA.Plotter(data.mat)

PCA4you documentation built on May 1, 2019, 7:58 p.m.