# Compute the skewness-adjusted projection depth
# of a two-dimensional dataset.
data(bloodfat)
Result <- sprojdepth(x = bloodfat)
# A multivariate rainbowplot may be obtained using mrainbowplot.
plot.options = list(legend.title = "SPD")
mrainbowplot(x = bloodfat,
depths = Result$depthX, plot.options = plot.options)
# Options for the underlying outlyingness routine may be passed
# using the options argument.
Result <- sprojdepth(x = bloodfat,
options = list(type = "Affine",
ndir = 1000,
seed = 12345
)
)
Run the code above in your browser using DataLab