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.



R-CMD-check CRANstatus

ggpolypath

A ggplot2 geom for polygons with holes, called ‘geom_polypath’.

PLEASE NOTE: ggpolypath predates full support for polygonal path geoemtry in ggplot2, we advise use of the ggplot2 package directly rather than this package, please see https://www.tidyverse.org/blog/2019/06/ggplot2-3-2-0/.

Install

Install from CRAN.

install.packages("ggpolypath")

Install the development version.

## install from Github
devtools::install_github("mdsumner/ggpolypath")

Example

See the vignette for examples.

vignette("ggpolypath")

Gory details

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

https://github.com/hypertidy/polyggon/blob/master/README.md

Reference manual

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

install.packages("ggpolypath")

0.4.0 by Michael D. Sumner, a year ago


https://mdsumner.github.io/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


Imported by OrgHeatmap, RSDA, spatialGE.

Suggested by venn.


See at CRAN