ggBiplot | R Documentation |
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)
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. |
the ggplot2 object is invisibly returned.
Eric Archer eric.archer@noaa.gov
pc.cr <- princomp(USArrests, cor = TRUE)
ggBiplot(pc.cr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.