Polygons with Holes for the Grammar of Graphics

Tools for working with polygons with holes in 'ggplot2', with a new 'geom' for drawing a 'polypath' applying the 'evenodd' or 'winding' rules.

A ggplot2 geom for polygons with holes, called 'geom_polypath'.

Install from CRAN.


Install the development version.

See the vignette for examples.


More examples, and more detail than you probably need can be found here:



ggpolypath 0.1.0

  • First release.

  • Distilled from longer discussion about polygons in https://github.com/r-gris/polyggon

  • Ported from 'geom_holygon', listed online at http://rpubs.com/kohske/3522

Reference manual

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


0.1.0 by Michael D. Sumner, 8 months ago

https://github.com/mdsumner/ggpolypath, http://rpubs.com/kohske/3522

Report a bug at https://github.com/mdsumner/ggpolypath/issues

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

Authors: Michael D. Sumner [aut, cre], Kohske Takahashi [ctb] (original author of 'geom_holygon')

Documentation:   PDF Manual  

GPL-3 license

Depends on ggplot2

Suggests rmarkdown, knitr

Suggested by spbabel.

See at CRAN