Voronoi Diagrams and Heatmaps with 'ggplot2'

Easy creation and manipulation of Voronoi diagrams using 'deldir' with visualization in 'ggplot2'.


'ggvoronoi' allows for easy creation and manipulation of Voronoi diagrams. Nearest neighbor regions are calculated using 'deldir'. From there, visualization is provided with 'ggplot2', or the user can analyze the diagram using any of R's spatial packages.

Getting started

#installing ggvoronoi from CRAN
#view some examples and create your first Voronoi diagram!

Contact info

For questions about usage/syntax or for reporting bugs, email Robert Garrett at [email protected] or raise an issue on this repository.


Version 0.8.1: Fixed bug when using a discrete value for fill mapping. Removed google maps API call in the vignette.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.8.2 by Robert C. Garrett, 2 months ago


Browse source code at https://github.com/cran/ggvoronoi

Authors: Robert C. Garrett [aut, cre] , Austin Nar [aut] , Thomas J. Fisher [aut] , Karsten Maurer [ctb]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports deldir, sp, rgeos, raster, methods

Depends on ggplot2

Suggests knitr, rmarkdown, ggmap, dplyr, scales, testthat, vdiffr

See at CRAN