plot.pcaCoDa: Plot method

View source: R/plot.pcaCoDa.R

plot.pcaCoDaR Documentation

Plot method

Description

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

Usage

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

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

Value

The robust compositional screeplot.

Author(s)

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


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)



robCompositions documentation built on Aug. 25, 2023, 5:13 p.m.