Plot method for BRIL.MedianRec objects

# S3 method for BRIL.MedianRec
plot(x, nbIterations = 5, showMedian = FALSE, showMax = FALSE, ...)

Arguments

x

An object of class BRIL.MedianRec (see median_rec())

nbIterations

Number of iterations to display, or 0 to show all of them (default: 5)

showMedian

Logical value, to show the final recursive median (indicated by a "+")

showMax

Logical value, to show the overall deepest point, or the center of the first MCD/MVE iteration (indicated by a "x")

...

Other arguments passed to or from other methods

See also

Examples

# Illustrative data XY <- rbind( mvtnorm::rmvnorm(300, c(0, 0), diag(2)), mvtnorm::rmvnorm(100, c(15, 20), diag(2) * 3 - 1), mvtnorm::rmvnorm(150, c(-10, 15), diag(2) * 2 - 0.5), mvtnorm::rmvnorm(200, c(5, 5), diag(2) * 200) ) # Process the data res <- median_rec(XY) # Default plot plot(res)
# Adjust axis plot(res, asp = 1, xlim = c(-20, 20), ylim = c(-20, 20))
# Change other graphical options plot(res, showMedian = TRUE, pch = 16, main = "Recursive Median")