powered by
Plot a biplot of a Principal Components Analysis using ggplot2.
ggBiplot(pca, x = 1, y = 2, mult.fac = 0.8, arrow.size = 1.5, label.size = 6)
the ggplot2 object is invisibly returned.
result from a call to princomp.
princomp
the number or column names of the components to plot.
multiplier factor for lengths of arrows from 0:1.
0:1
thickness of arrow lines.
size of labels.
Eric Archer eric.archer@noaa.gov
pc.cr <- princomp(USArrests, cor = TRUE) ggBiplot(pc.cr)
Run the code above in your browser using DataLab