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

https://github.com/corymccartan/hexmap

Hexagonal Cartograms Inside State Boundaries
https://github.com/corymccartan/hexmap

Last synced: 4 months ago
JSON representation

Hexagonal Cartograms Inside State Boundaries

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# hexmap

The **hexmap** package automates the process of generating hexagonal cartograms
for the U.S., in the style of the [Daily Kos election maps](https://dkel.ec/map).
Districts are built from hexagons and placed inside state boundaries to best
approximate their real-world geography. States are sized and positioned to
recreate the overall shape of the country while balancing the areas of each
district.

## Installation

You can install the development version of hexmap from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("CoryMcCartan/hexmap")
```