plot_outlier | R Documentation |
Plot Outliers
## S4 method for signature 'OutlierIndex,missing'
plot(
x,
...,
type = c("dotchart", "distance"),
robust = TRUE,
colors = color("discreterainbow"),
symbols = c(16, 1, 3),
xlim = NULL,
ylim = NULL,
xlab = NULL,
ylab = NULL,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes,
panel.first = NULL,
panel.last = NULL,
legend = list(x = "topleft")
)
x |
An |
... |
Further graphical parameters. |
type |
A |
robust |
A |
colors |
A vector of colors or a |
symbols |
A lenth-three vector of symbol specification for non-outliers and outliers (resp.). |
xlim |
A length-two |
ylim |
A length-two |
xlab , ylab |
A |
main |
A |
sub |
A |
ann |
A |
axes |
A |
frame.plot |
A |
panel.first |
An an |
panel.last |
An |
legend |
A |
plot()
is called for its side-effects: is results in a graphic being
displayed (invisibly return x
).
N. Frerebeau
Filzmoser, P., Garrett, R. G. & Reimann, C. (2005). Multivariate outlier detection in exploration geochemistry. Computers & Geosciences, 31(5), 579-587. \Sexpr[results=rd]{tools:::Rd_expr_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. \Sexpr[results=rd]{tools:::Rd_expr_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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2011.06.014")}.
Other outlier detection methods:
detect_outlier()
## Data from Day et al. 2011
data("kommos", package = "folio") # Coerce to compositional data
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values
coda <- as_composition(kommos, parts = 3:17, groups = 1)
## Detect outliers
out <- detect_outlier(coda)
plot(out, type = "dotchart")
plot(out, type = "distance")
## Detect outliers according to CJ
ref <- extract(coda, "CJ")
out <- detect_outlier(coda, reference = ref, method = "mcd")
plot(out, type = "dotchart")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.