{"id":13858365,"url":"https://github.com/hrbrmstr/lineworkmaps","last_synced_at":"2025-08-01T06:07:12.255Z","repository":{"id":141238474,"uuid":"39422026","full_name":"hrbrmstr/lineworkmaps","owner":"hrbrmstr","description":"Use Project Linework maps easily in R","archived":false,"fork":false,"pushed_at":"2015-09-01T01:16:18.000Z","size":36265,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T02:36:39.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hrbrmstr.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-21T03:31:51.000Z","updated_at":"2025-03-22T11:18:26.000Z","dependencies_parsed_at":"2023-03-13T10:34:38.808Z","dependency_job_id":null,"html_url":"https://github.com/hrbrmstr/lineworkmaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hrbrmstr/lineworkmaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Flineworkmaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Flineworkmaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Flineworkmaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Flineworkmaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/lineworkmaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Flineworkmaps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268177807,"owners_count":24208396,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-05T03:02:05.942Z","updated_at":"2025-08-01T06:07:12.203Z","avatar_url":"https://github.com/hrbrmstr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput:\n  md_document:\n    variant: markdown_github\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README_files/README-\"\n)\n```\n\nlineworkmaps is compilation of [Project Linework](http://projectlinework.org/) maps in `SpatialPolygonsDataFrame` and `ggplot2` fortified objects ready for mapping, et al.\n\nI took a minimalist approach to the package in that I don't have every linework (the calligraphy one seemed less than useful) and the functions only work for Admin 0 \u0026 Admin 1 polygons.\n\nPlease file an issue if there is functionality you'd like to see that isn't included. The package is at a very early stage so almost no suggestion will be turned away!\n\nTo get an idea of what you can do with these lineworks in R, head on over to [RPubs](http://rpubs.com/hrbrmstr/project-linework). It has been updated to use this package. \n\nThe Project Linework shapefiles also work well [with Leaflet](http://rpubs.com/hrbrmstr/linework-leaflet).\n\nThe following functions are implemented:\n\n- `lineworks` : Return vector of available linework shapes and optionally print verbose description of shapfile data elements.\n- `linework_map` :  Retrieve a linework map as a regular or fortified `SpatialPolygonsDataFrame`\n\nThe following data sets are included:\n\n- `linework` : Project Linework spatial \u0026 fortified objects\n\n### News\n\n- Version 0.0.1.9001 : naming consistency\n- Version 0.0.1.9000 : Added two new Project Linework map sets: Moriarty Hand and Weekend Update [[ref](http://www.projectlinework.org/2015/08/31/new_linework_sets.html)]\n- Version 0.0.0.9000 released\n\n### Installation\n\n```{r eval=FALSE}\ndevtools::install_github(\"hrbrmstr/lineworkmaps\")\n```\n\n```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}\noptions(width=120)\n```\n\n### Usage\n\n```{r}\nlibrary(lineworkmaps)\nlibrary(sp)\nlibrary(ggplot2)\nlibrary(ggthemes)\n\n# current verison\npackageVersion(\"lineworkmaps\")\n\n# plot admin1 polygons for Elmer Casual (the defaults)\nplot(linework_map())\n\n# plot the continental United States \"Wargames\" style\nwargames \u003c- linework_map(\"wargames\", fortified=TRUE)\n\nus \u003c- wargames[wargames$iso_a2==\"US\" \u0026 \n               !wargames$code_hasc %in% c(\"US.HI\", \"US.AK\"),]\n\nggplot(us) +\n  geom_map(map=us, aes(x=long, y=lat, map_id=id)) +\n  coord_map(project=\"albers\", lat0=37.5, lat1=29.5) +\n  theme_map()\n\n# fancier example just focusing on the U.S.\nelmer \u003c- linework_map(\"elmer_casual\", fortified=TRUE)\n\nus \u003c- elmer[elmer$COUNTRY==\"US\" \u0026 \n            elmer$Name != \"Alaska\",]\n\ngg \u003c- ggplot()\ngg \u003c- gg + geom_map(data=us, map=us,\n                    aes(x=long, y=lat, map_id=id),\n                    color=\"#939598\", fill=\"#d1d2d4\", size=0.5)\ngg \u003c- gg + coord_map(project=\"albers\", lat0=37.5, lat1=29.5)\ngg \u003c- gg + labs(title=\"Elmer Casual\")\ngg \u003c- gg + theme_map()\ngg \u003c- gg + theme(plot.title=element_text(size=16))\ngg\n\n# new maps: moriarty hand \u0026 weekend update\n\nmoriarty \u003c- linework_map(\"moriarty_hand\", fortified=TRUE)\n\nus \u003c- moriarty[substring(moriarty$ISO_3166_2, 1, 2) ==\"US\" \u0026 \n               !(moriarty$ISO_3166_2 %in% c(\"US-AK\", \"US-HI\")),]\n\ngg \u003c- ggplot()\ngg \u003c- gg + geom_map(data=us, map=us,\n                    aes(x=long, y=lat, map_id=id),\n                    color=\"#939598\", fill=\"#d1d2d4\", size=0.5)\ngg \u003c- gg + coord_map(project=\"albers\", lat0=37.5, lat1=29.5)\ngg \u003c- gg + labs(title=\"Moriarty Hand Admin 1 CONUS\")\ngg \u003c- gg + theme_map()\ngg \u003c- gg + theme(plot.title=element_text(size=16))\ngg\n\n\nmoriarty \u003c- linework_map(\"moriarty_hand\", admin_level=0, fortified=FALSE)\nmoriarty \u003c- subset(moriarty, region_un==\"Africa\")\nmoriarty \u003c- fortify(moriarty)\n\ngg \u003c- ggplot()\ngg \u003c- gg + geom_map(data=moriarty, map=moriarty,\n                    aes(x=long, y=lat, map_id=id),\n                    color=\"#939598\", fill=\"#d1d2d4\", size=0.5)\ngg \u003c- gg + coord_quickmap()\ngg \u003c- gg + labs(title=\"Moriarty Hand Admin 0 - Africa\")\ngg \u003c- gg + theme_map()\ngg \u003c- gg + theme(plot.title=element_text(size=16))\ngg\n\nweekend \u003c- linework_map(\"weekend_update\", admin_level=0, fortified=TRUE)\nweekend \u003c- subset(weekend, Country != \"United States\")\n\ngg \u003c- ggplot()\ngg \u003c- gg + geom_map(data=weekend, map=weekend,\n                    aes(x=long, y=lat, map_id=id),\n                    color=\"#939598\", fill=\"#d1d2d4\", size=0.5)\ngg \u003c- gg + coord_quickmap()\ngg \u003c- gg + labs(title=\"Weekend Update - Europe\")\ngg \u003c- gg + theme_map()\ngg \u003c- gg + theme(plot.title=element_text(size=16))\ngg\n\n# info about the lineworks\nlineworks(verbose=TRUE)\n```\n\n### Test Results\n\n```{r}\nlibrary(lineworkmaps)\nlibrary(testthat)\n\ndate()\n\ntest_dir(\"tests/\")\n```\n\n### Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). \nBy participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Flineworkmaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Flineworkmaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Flineworkmaps/lists"}