StatEllipse: Generic ggplot biplot function

Description Usage Arguments Format Examples

Description

Produces a ggplot biplot from an PCA analysis similar to biplot. Currently has methods for princomp and prcomp.

Usage

1

Arguments

mapping

The aesthetic mapping, usually constructed with aes or aes_string. Only needs to be set at the layer level if you are overriding the plot defaults.

data

A layer specific dataset - only needed if you want to override the plot defaults.

stat

The statistical transformation to use on the data for this layer.

position

The position adjustment to use for overlappling points on this layer

...

other arguments passed on to layer. This can include aesthetics whose values you want to set, not map. See biplot for more details.

Format

1
2
3
4
5
6
7
8
proto object 
 $ calculate_groups:function (., data, scales, ...)   
 $ objname         : chr "ellipse" 
 $ default_geom    :function (.)   
 $ calculate       :function (., data, scales, level = 0.75, segments = 51, ...)   
 $ required_aes    : chr [1:2] "x" "y" 
 parent: proto object 
 .. parent: proto object 

Examples

1
2
3
4
5
6
p <- qplot(data=iris,
           x=Sepal.Length,
           y=Petal.Length,
           colour=Species)
p <- p + stat_ellipse()
print(p)

low-decarie/ggpca documentation built on May 21, 2019, 7:50 a.m.