Description Usage Arguments Format Examples
Produces a ggplot biplot from an PCA analysis similar to biplot. Currently has methods for princomp and prcomp.
1 |
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
|
1 2 3 4 5 6 7 8 |
1 2 3 4 5 6 | p <- qplot(data=iris,
x=Sepal.Length,
y=Petal.Length,
colour=Species)
p <- p + stat_ellipse()
print(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.