kde2d: Two dimensional kernel density estimation

View source: R/plotting.geoChronR.R

kde2dR Documentation

Two dimensional kernel density estimation

Description

Use a kernel density estimator to model the density of samples along a 2-dimensional grid

Usage

kde2d(x, y, n.bins = 100, x.bin = NA, y.bin = NA)

Arguments

x

n by m matrix where n is the number of observations and m is >= 1

y

n by j matrix where n is the number of observations and j is >= 1

n.bins

number bins over which to calculate intervals. Used to calculate x.bin if not provided.

x.bin

vector of bin edges over which to bin.

y.bin

vector of bin edges over which to bin.

Value

A list with a matrix of density, x.bin and y.bin

See Also

Other gridding: bin2d(), quantile2d()

Other plot help: AD2BP_trans(), BP2AD_trans(), axisLabel(), bin2d(), geoChronRPlotTheme(), getLegend(), getPlotRanges(), meltDistributionTable(), modeSelektor(), periodAnnotate(), quantile2d(), reverselog10_trans()


nickmckay/GeoChronR documentation built on April 9, 2024, 5:26 a.m.