jamCalcDensity: Calculate scatter plot point density

jamCalcDensityR Documentation

Calculate scatter plot point density

Description

Calculate scatter plot point density

Usage

jamCalcDensity(x, nbin, bandwidth = NULL, range.x)

Arguments

x

numeric matrix with two columns representing x,y coordinates.

nbin

integer number of bins to subdivide the scatterplot, expanded to length 2 to accommodate x and y axis bins.

bandwidth

numeric or NULL representing the bandwidth used for point density determination.

range.x

numeric vector length 2 representing the range of values to consider for point density.

Details

This function is called internally by plotSmoothScatter(), and is an equivalent replacement for grDevices:::.smoothScatterCalcDensity().


jmw86069/jamba documentation built on Oct. 9, 2024, 10:52 a.m.