The argument “central.regions” of the function “clover_plot_data” determines if the central regions used for computing the illuminations are plotted (defaults to TRUE). The central regions are the upper level sets of the depth for samples X and Y, respectively, with the level being specified by the arguments “alphaX” and “alphaY” of the function “clover_calc”.
First we generate data from bivariate normal distributions with different means and the same variance matrices and compute the necessary quantities:
library(mvtnorm)
n1 <- 100
n2 <- 75
set.seed(2020)
X <- rmvnorm(n1, mean=c(0,0), sigma=diag(2)) # Observations of class 1
Y <- rmvnorm(n2, mean=c(2,2), sigma=diag(2)) # Observations of class 2
res <- clover_calc(X, Y)
By default, the central regions are plotted:
clover_plot_data(res)
A plot without the central regions can be plotted, too:
clover_plot_data(res, central.regions=FALSE)