{"id":16472969,"url":"https://github.com/elipousson/mapbaltimore","last_synced_at":"2025-06-23T15:32:49.836Z","repository":{"id":54668749,"uuid":"302675880","full_name":"elipousson/mapbaltimore","owner":"elipousson","description":"🗺🏙 Map Baltimore neighborhoods and local open data","archived":false,"fork":false,"pushed_at":"2024-11-28T03:47:49.000Z","size":330263,"stargazers_count":18,"open_issues_count":14,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T16:19:18.105Z","etag":null,"topics":["baltimore","r","r-package","rspatial"],"latest_commit_sha":null,"homepage":"https://elipousson.github.io/mapbaltimore/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elipousson.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2020-10-09T15:07:01.000Z","updated_at":"2025-03-12T13:37:41.000Z","dependencies_parsed_at":"2024-11-28T04:33:45.042Z","dependency_job_id":null,"html_url":"https://github.com/elipousson/mapbaltimore","commit_stats":{"total_commits":550,"total_committers":1,"mean_commits":550.0,"dds":0.0,"last_synced_commit":"3c6ec66c54e676586126ec4e716582950dd294f9"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/elipousson/mapbaltimore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elipousson%2Fmapbaltimore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elipousson%2Fmapbaltimore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elipousson%2Fmapbaltimore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elipousson%2Fmapbaltimore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elipousson","download_url":"https://codeload.github.com/elipousson/mapbaltimore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elipousson%2Fmapbaltimore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261504192,"owners_count":23168774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baltimore","r","r-package","rspatial"],"created_at":"2024-10-11T12:19:10.261Z","updated_at":"2025-06-23T15:32:49.808Z","avatar_url":"https://github.com/elipousson.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"80%\"\n)\n```\n\n# mapbaltimore \u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"123\"/\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Codecov test coverage](https://codecov.io/gh/elipousson/mapbaltimore/branch/main/graph/badge.svg)](https://app.codecov.io/gh/elipousson/mapbaltimore?branch=main)\n\u003c!-- badges: end --\u003e\n\nThe goal of the mapbaltimore package is to provide an easy way to create maps of Baltimore neighborhoods, Council districts, and other areas using open data on schools, housing, parks, and public transit.\n\n## Installation\n\nYou can install this development version (including Suggested packages) from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"pak\")\npak::pkg_install(\"elipousson/mapbaltimore\", dependencies = TRUE)\n```\n\n## Data and reproducibility\n\nThe intent for this package is to always provide the most current version of the included administrative data. If the underlying data is updated on an rolling basis, the corresponding dataset for mapbaltimore will be updated with changes noted in the changelog. If the underlying data is updated less frequently or requires some special review, the older versions may be archived with a year appended to the end of the dataset name.\n\nPackage datasets that are currently known to be outdated included:\n\n- `csas`: Multiple attribute names are outdated.\n- `neighborhoods`: A new version is now included as `neighborhoods_2020`\n- `police_districts`: A new version is now included as `police_districts_2023`\n\nUsers are encouraged to flag outdated datasets by opening an issue on [the package repository](https://github.com/elipousson/mapbaltimore).\n\n## Examples\n\n```{r setup}\nlibrary(sf)\nlibrary(ggplot2)\nlibrary(mapbaltimore)\n\ntheme_set(theme_void())\n```\n\nmapbaltimore is most useful for convenient access to Baltimore spatial data from neighborhoods to streets to parks.\n\nYou can download a neighborhood boundary:\n\n```{r}\ndowntown \u003c- get_baltimore_area(\n  type = \"neighborhood\",\n  name = \"Downtown\"\n)\n\ndowntown_boundary \u003c- geom_sf(\n  data = downtown,\n  color = \"darkorange\",\n  fill = NA,\n  linewidth = 0.75,\n  linetype = \"dashed\"\n)\n\ndplyr::glimpse(downtown)\n```\n\nAnd then use the neighborhood (or another location) to filter data for that area:\n\n```{r}\ndowntown_streets \u003c- get_area_streets(downtown)\n\ndowntown_map \u003c- ggplot() +\n  geom_sf(data = downtown_streets, color = \"gray70\") +\n  downtown_boundary\n```\n\nThe package datasets are typically based on official city or state sources but have been updated to remove outdated information and incorporate related information. For example, the parks data includes alternate names and OpenStreetMap identifiers:\n\n```{r}\ndowntown_parks \u003c- getdata::get_location_data(downtown, data = parks)\n```\nzoning data has been labelled and categorized based on the city zoning code:\n\n```{r}\ndowntown_zoning \u003c- getdata::get_location_data(downtown, data = zoning, dist = 500, unit = \"m\")\n\nggplot() +\n  geom_sf(data = downtown_zoning, aes(fill = category_zoning), alpha = 0.3) +\n  downtown_boundary\n```\n\nThe package includes a few bundled GeoPackage files with data on trees, vegetated areas, and unimproved properties. It also includes functions for caching even larger datasets with edge of pavement geometry, parcel boundaries, and street centerline data for the Baltimore metro area.\n\n```{r}\ndowntown_trees \u003c- getdata::get_location_data(downtown, data = \"trees\", package = \"mapbaltimore\", dist = 100, unit = \"m\")\n\nggplot() +\n  geom_sf(data = downtown_trees, color = \"darkgreen\", alpha = 0.25) +\n  downtown_boundary\n```\n\nNote, while the code for this package is released under an MIT license, the data is a mix of public domain and [CC0](https://creativecommons.org/publicdomain/zero/1.0/) sources.\n\n## Required packages\n\nmapbaltimore relies on a several other non-CRAN packages that I am actively developing. I split off many of the mapping and data access functions originally created for mapbaltimore into three more general packages that are imported by mapbaltimore:\n\n-   [sfext](https://elipousson.github.io/sfext/)\n-   [getdata](https://elipousson.github.io/getdata/)\n-   [maplayer](https://elipousson.github.io/maplayer/)\n\nThe package uses [my fork of the esri2sf R package](https://github.com/elipousson/esri2sf/) to access city and state FeatureLayers for building permit data, crime data, and 311 service requests and other data sources.\n\n## Related packages\n### Baltimore and Maryland data packages\n\nAfter starting the mapbaltimore package in 2020, I've created two additional data packages:\n\n-   [bcpss](https://elipousson.github.io/bcpss/): Tabular and spatial data from the Baltimore City School system.\n-   [mapmaryland](https://elipousson.github.io/mapmaryland/): Statewide spatial data from the U.S. Census Bureau and other sources along with data access functions for working with the Maryland Open Data portal and Maryland iMap service.\n-   [baltimorecensus](https://elipousson.github.io/baltimorecensus/): Data downloaded with the tigris package.\n\n### Inspirational packages\n\nThe development of mapbaltimore was inspired in part by a handful of other \"place-based\" R packages for cities:\n\n-   [nycgeo](https://nycgeo.mattherman.info/index.html) for New York City\n-   [gateway](https://github.com/slu-openGIS/gateway) for Saint Louis\n\nAt the national level, [tigris](https://github.com/walkerke/tigris) provides access to boundary data for all geographies used by the U.S. Census Bureau. mapbaltimore uses tigris to download all of the U.S. Census geographies that are included with the package.\n\nOutside the U.S., there are similar packages that provide access to varied boundary data for Brazil [geobr](https://github.com/ipeaGIT/geobr), Uruguay [geouy](https://github.com/RichDeto/geouy), Chile [chilemapas](https://github.com/pachamaltese/chilemapas) and Mexico [mxmaps](https://github.com/diegovalle/mxmaps).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felipousson%2Fmapbaltimore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felipousson%2Fmapbaltimore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felipousson%2Fmapbaltimore/lists"}