Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://mdsumner.github.io/ggpolypath/

Polygons with holes for ggplot2
https://mdsumner.github.io/ggpolypath/

Last synced: about 2 months ago
JSON representation

Polygons with holes for ggplot2

Awesome Lists containing this project

README

        

---
output:
md_document:
variant: markdown_github
---

---

[![R-CMD-check](https://github.com/mdsumner/ggpolypath/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mdsumner/ggpolypath/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/ggpolypath)](https://CRAN.R-project.org/package=ggpolypath)

```{r, echo = FALSE, message = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "figure/README-"
)
```

## 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.

```{r,eval=FALSE}
install.packages("ggpolypath")
```

Install the development version.

```{r,eval=FALSE}
## install from Github
devtools::install_github("mdsumner/ggpolypath")
```

## Example

See the vignette for examples.

```{r,eval=FALSE}
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