getHMedian: Get coordiantes of the median cell after the erode operation

Description Usage Arguments Methods See Also Examples

Description

A method for a eroded hexbin object to extract the coordinates of the median cell. The median is simply the cell with the highest erosion number or the last cell to be eroded.

Usage

1
getHMedian(ebin)

Arguments

ebin

result of erode.hexbin().

Methods

ebin = "erodebin"

...

See Also

erode.hexbin

Examples

1
2
3
4
5
6
7
8
set.seed(153)
x <- rnorm(10000)
y <- rnorm(10000)
bin <- hexbin(x,y)

smbin  <- smooth.hexbin(bin)
erodebin <- erode.hexbin(smbin, cdfcut=.5)
getHMedian(erodebin)

Example output

$x
[1] -0.07589057

$y
[1] 0.02761399

hexbin documentation built on Jan. 13, 2021, 5:37 a.m.