hist_xy: 2-Dimensional Histogram

Description Usage Arguments Value Examples

View source: R/map-utils.R

Description

Compute a histogram from xy data given set of breakpoints.

Usage

1
hist_xy(xy, breaks)

Arguments

xy

Numeric. A data.frame, or object coercible to a data.frame with as.data.frame(), where the columns of the data.frame are, or can be, interpreted as XY coordinates.

breaks

List. A list of vectors, one for each dimension of xy, where each vector gives the breakpoints between the histogram cells.

Value

A list with three components:

Examples

1
hist_xy(matrix(runif(50), 25), list(seq(0, 1, .2), seq(0, 1, .2)))

finbif documentation built on Sept. 5, 2021, 5:43 p.m.