pcaPlot: Plot a few principal components

Description Usage Arguments Value Examples

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 May 30, 2019, 8:40 a.m.