Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/christopherkenny/redistio

Interactive Redistricting
https://github.com/christopherkenny/redistio

Last synced: 28 days ago
JSON representation

Interactive Redistricting

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%'
)
```

# redistio redistio website

[![r-universe status badge](https://christopherkenny.r-universe.dev/badges/redistio)](https://christopherkenny.r-universe.dev/ui#package:redistio)
[![](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/christopherkenny/redistio/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/christopherkenny/redistio/actions/workflows/R-CMD-check.yaml)

`redistio` provides a point-and-click districting interface powered by [Shiny](https://shiny.posit.co/) and [Leaflet](https://leafletjs.com/). For regular `sf` objects, it can be used to draw districts and export assignment files. For `redist_map` objects, algorithmic assistance is enabled for map drawing.

## Installation

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

``` r
pak::pkg_install('christopherkenny/redistio')
```

## Example

The most basic application of `redistio` starts with an `sf` tibble and a column of district assignments.

```r
library(redistio)

draw(dc, dc$ward)
```

![](man/figures/example_interactive.png)