hdepth {aplpack} | R Documentation |
hdepth()
computes the h-depths of points.
hdepth(tp, data, number.of.directions=181)
tp |
two column matrix of the coordinates of points which h-depths are needed |
data |
two column matrix of the coordinates of the points of a data set |
number.of.directions |
number of directions to be checked |
The function hdepth
computes the h-depths of the points
tp
relative to data set data
. If data
is
missing tp
will also be taken as data set.
the h-depths of the test points
Version of bagplot: 12/2012
Peter Wolf
# computation of h-depths
data <- cbind(rnorm(40), rnorm(40))
xy <- cbind(runif(50,-2,2),runif(50,-2,2))
bagplot(data); text(xy, as.character(hdepth(xy,data)))