plot.pcaCoDa | R Documentation |
Provides a screeplot and biplot for (robust) compositional principal components analysis.
## S3 method for class 'pcaCoDa'
plot(x, y, ..., which = 1, choices = 1:2)
x |
object of class ‘pcaCoDa’ |
y |
... |
... |
... |
which |
an integer between 1 and 3. Produces a screeplot (1), or a biplot using stats biplot.prcomp function (2), or a biplot using ggfortify's autoplot function (3). |
choices |
principal components to plot by number |
The robust compositional screeplot.
M. Templ, K. Hron
Filzmoser, P., Hron, K., Reimann, C. (2009) Principal Component Analysis for Compositional Data with Outliers. Environmetrics, 20 (6), 621–632.
pcaCoDa
, biplot.pcaCoDa
data(coffee)
## Not run:
p1 <- pcaCoDa(coffee[,-1])
plot(p1)
plot(p1, type="lines")
plot(p1, which = 2)
plot(p1, which = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.