robCompositions (version 2.4.1)

plot.pcaCoDa: Plot method

Description

Provides a screeplot and biplot for (robust) compositional principal components analysis.

Usage

# S3 method for pcaCoDa
plot(x, y, ..., which = 1, choices = 1:2)

Value

The robust compositional screeplot.

Arguments

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

Author

M. Templ, K. Hron

References

Filzmoser, P., Hron, K., Reimann, C. (2009) Principal Component Analysis for Compositional Data with Outliers. Environmetrics, 20 (6), 621--632.

See Also

pcaCoDa, biplot.pcaCoDa

Examples

Run this code

data(coffee)
if (FALSE) {
p1 <- pcaCoDa(coffee[,-1])
plot(p1)
plot(p1, type="lines")
plot(p1, which = 2)
plot(p1, which = 3)
}


Run the code above in your browser using DataLab