Skip to contents

Plot Outliers

Usage

# S4 method for OutlierIndex
autoplot(object, ..., qq = TRUE, limit = !qq)

# S4 method for OutlierIndex,missing
plot(x, qq = TRUE, limit = !qq, ...)

Arguments

...

Currently not used.

qq

A logical scalar: should a quantile-quantile plot be produced?

limit

A logical scalar: should the cut-off value for outlier detection be displayed?

x, object

An OutlierIndex object.

Value

  • autoplot() returns a ggplot object.

  • plot() and qqplot() are called it for their side-effects: they result in a graphic being displayed (invisibly return x).

References

Filzmoser, P., Garrett, R. G. & Reimann, C. (2005). Multivariate outlier detection in exploration geochemistry. Computers & Geosciences, 31(5), 579-587. doi:10.1016/j.cageo.2004.11.013 .

Filzmoser, P. & Hron, K. (2008). Outlier Detection for Compositional Data Using Robust Methods. Mathematical Geosciences, 40(3), 233-248. doi:10.1007/s11004-007-9141-5 .

Filzmoser, P., Hron, K. & Reimann, C. (2012). Interpretation of multivariate outliers for compositional data. Computers & Geosciences, 39, 77-85. doi:10.1016/j.cageo.2011.06.014 .

See also

Other outlier detection methods: outliers()

Author

N. Frerebeau

Examples

## Coerce to chemical data
data("hongite")
coda <- as_composition(hongite)

## Detect outliers
out <- outliers(coda)

## Plot
plot(out, qq = TRUE)

plot(out, qq = FALSE)