Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christopherkenny/redistio
Interactive Redistricting
https://github.com/christopherkenny/redistio
Last synced: 28 days ago
JSON representation
Interactive Redistricting
- Host: GitHub
- URL: https://github.com/christopherkenny/redistio
- Owner: christopherkenny
- License: gpl-3.0
- Created: 2022-06-28T02:29:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T00:20:13.000Z (4 months ago)
- Last Synced: 2024-06-29T02:15:26.846Z (4 months ago)
- Language: R
- Homepage: http://www.christophertkenny.com/redistio/
- Size: 11.8 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE.md
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%'
)
```[![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)