thresholds: Discretize a two-dimensional data space into quadrants by
applying thresholds
Description
Discretize a two-dimensional data space into quadrants by
applying thresholds.
Usage
thresholds(x, y, xthr, ythr)
Arguments
x
Vector containing x or matrix containing x and y values of
bivariate data.
y
Optional vector containing y values of bivariate data.
xthr
x value seperating 'left' and 'right'.
ythr
y value seperating `up` and 'down'.
Value
Details
The function returns a 2x2 matrix giving the counts
for each quadrant. Events with values equal to the thresholds are
counted to the left or down respectively.