plot.pcaCoDa: Plot method

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/plot.pcaCoDa.R

Description

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

Usage

1
2
## 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

1
2
3
4
5
6
7
8
9
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 Sept. 20, 2021, 5:07 p.m.