ggBiplot {swfscMisc} | R Documentation |
ggBiplot
Description
Plot a biplot of a Principal Components Analysis using ggplot2.
Usage
ggBiplot(pca, x = 1, y = 2, mult.fac = 0.8, arrow.size = 1.5, label.size = 6)
Arguments
pca |
result from a call to |
x , y |
the number or column names of the components to plot. |
mult.fac |
multiplier factor for lengths of arrows from |
arrow.size |
thickness of arrow lines. |
label.size |
size of labels. |
Value
the ggplot2 object is invisibly returned.
Author(s)
Eric Archer eric.archer@noaa.gov
Examples
pc.cr <- princomp(USArrests, cor = TRUE)
ggBiplot(pc.cr)
[Package swfscMisc version 1.6.5 Index]