depthDensity: Depth weighted density estimator

Description Usage Arguments Examples

Description

Depth weighted density estimator

Usage

1
depthDensity(x, y, nx = 5, ny = 32, xg = NULL, yg = NULL, ...)

Arguments

x

numeric vector

y

numeric vector

nx

the number of equally spaced points at which the density is to be estimated in x-dimension.

ny

the number of equally spaced points at which the density is to be estimated in x-dimension.

xg

vector of point at which the density is to be estimated.

yg

vector of point at which the density is to be estimated.

Examples

1
2
3
4
5
6
data = depthproc:::.sampleData(1:5, 100)
x = data[,1]; y = data[,2]
plot(x,y)
dep = depthDensity(x,y)
plot(dep, type = "raw")
plot(dep, type = "depth")

depthproc documentation built on May 2, 2019, 5:46 p.m.