Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/elipousson/tigris-basemap

A {targets} reproducible data analysis pipeline for creating basemap graphics with {tigris}
https://github.com/elipousson/tigris-basemap

Last synced: 10 days ago
JSON representation

A {targets} reproducible data analysis pipeline for creating basemap graphics with {tigris}

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

# tigris-basemap

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)

The goal of tigris-basemap is to share a reproducible data pipeline (RAP) built with `{targets}` and `{tigris}` for creating static basemaps of counties and metropolitan areas in the United States of America using spatial data from the Census Bureau and USGS.

At present this pipeline relies on development versions of both `{tigris}` and `{arcgislayers}`. These can be installed using `{pak}` or `{devtools}`:

```{r eval=FALSE}
pak::pkg_install("elipousson/tigris")
pak::pkg_install("elipousson/arcgislayers")
```

Here is an example of a county map created with this pipeline:

```{r}
targets::tar_read_raw("county_basemap")
```

This map does not include the outside border of the county as it is intended to be used in combination with a data layer and then county boundary applied as a foreground layer.

Here is an example of a regional map created with this pipeline:

```{r}
targets::tar_read_raw("msa_basemap")
```

The design of both maps are created for use in Baltimore City, Maryland and the Baltimore-Columbia-Towson, MD Metro Area. The pipeline works with other counties and metro areas but has not been tested extensively and likely will not work with all geographies.