bin_2d: Bin values in two dimensions

View source: R/main.R

bin_2dR Documentation

Bin values in two dimensions

Description

Bin values in two dimensions based on a vector of breaks in each dimension. Values are included in a bin if they are >= the left break and < the right break. Default breaks are chosen to encompass all the data.

Usage

bin_2d(x, y, x_breaks = NULL, y_breaks = NULL)

Arguments

x, y

first and second dimensions of values to bin.

x_breaks, y_breaks

set of breaks in x- and y-dimensions.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.