ggbiplot v0.55

A ggplot2 based biplot

A ggplot2 based biplot. It provides a drop-in replacement for biplot.princomp(). It implements a biplot and scree plot using ggplot2.

Readme

NEWS: Active development of ggbiplot has moved to the experimental branch

ggbiplot

An implementation of the biplot using ggplot2. The package provides two functions: ggscreeplot() and ggbiplot(). ggbiplot aims to be a drop-in replacement for the built-in R function biplot.princomp() with extended functionality for labeling groups, drawing a correlation circle, and adding Normal probability ellipsoids.

The development of this software was supported in part by NSF Postdoctoral Fellowship DMS-0903120

Installation

library(devtools)
install_github("vqv/ggbiplot")

Example Usage

library(ggbiplot)
data(wine)
wine.pca <- prcomp(wine, scale. = TRUE)
ggbiplot(wine.pca, obs.scale = 1, var.scale = 1,
  groups = wine.class, ellipse = TRUE, circle = TRUE) +
  scale_color_discrete(name = '') +
  theme(legend.direction = 'horizontal', legend.position = 'top')

Functions in ggbiplot

Name Description
ggscreeplot Screeplot for Principal Components
wine Chemical composition of three cultivars of wine
ggbiplot Biplot for Principal Components using ggplot2
No Results!

Details

Type Package
Date 2011-10-23
License GPL-2
URL http://github.com/vqv/ggbiplot
Collate 'ggbiplot.r' 'ggscreeplot.r'

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/ggbiplot)](http://www.rdocumentation.org/packages/ggbiplot)