powered by
hdepth() computes the h-depths of points.
hdepth()
hdepth(tp, data, number.of.directions=181)
two column matrix of the coordinates of points which h-depths are needed
two column matrix of the coordinates of the points of a data set
number of directions to be checked
the h-depths of the test points
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.
hdepth
tp
data
bagplot
# NOT RUN { # 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))) # }
Run the code above in your browser using DataLab