hexDensity: Fast Kernel Density Estimation with Hexagonal Grid

Kernel density estimation with hexagonal grid for bivariate data. Hexagonal grid has many beneficial properties like equidistant neighbours and less edge bias, making it better for spatial analyses than the more commonly used rectangular grid. Carr, D. B. et al. (1987) <doi:10.2307/2289444>. Diggle, P. J. (2010) <doi:10.1201/9781420072884>. Hill, B. (2017) <https://blog.bruce-hill.com/meandering-triangles>. Jones, M. C. (1993) <doi:10.1007/BF00147776>.

Getting started

Package details

AuthorQuoc Hoang Nguyen [aut, cre] (ORCID: <https://orcid.org/0009-0007-2828-7567>), Yunshun Chen [aut] (ORCID: <https://orcid.org/0000-0003-4911-5653>), Dan Carr [ctb], binning routine ported by Nicholas Lewin-Koh [ctb], Martin Maechler [ctb]
MaintainerQuoc Hoang Nguyen <nguyen.q@wehi.edu.au>
LicenseGPL
Version1.4.11
URL https://github.com/ChenLaboratory/hexDensity
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("hexDensity")

Try the hexDensity package in your browser

Any scripts or data that you put into this service are public.

hexDensity documentation built on Aug. 29, 2026, 1:07 a.m.