myBiplot: Makes a nice BiPlot

Description Usage Arguments Value

View source: R/UtilityFunctions.R

Description

Creates a custom BiPlot for visualizing the results of PCA

Usage

1
myBiplot(pc, colorfactor, scaling = 100, nudge = 1.2, N = 10, dims = 1:2, ...)

Arguments

pc

output of prcomp

colorfactor

a factor the same length as nrow(pc$x) to color the points

scaling

integer to scale the vectors showing loadings

nudge

numeric to offset labels for loadings

N

number of variables with longest dim[1] or dim[2] projections to display

dims

numeric vector of length 2 indicating which PCs to plot

...

passed to plot

Value

printed plot


MAST documentation built on Nov. 8, 2020, 8:19 p.m.