pcaPlot: Plot a few principal components

Description Usage Arguments Value Examples

View source: R/pcaPlot.R

Description

Plot a few principal components against each other, their densities colored by some factor

Usage

1
pcaPlot(model, rank = 3, color)

Arguments

model

A 'prcomp' model

rank

Number of first principal components to select

color

A factor to color by

Value

Plots as a side effect

Examples

1
pcaPlot(prcomp(iris[,1:4]), color = iris$Species)

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.