{"id":34520427,"url":"https://github.com/cidm-ph/nswgeo","last_synced_at":"2026-04-02T14:11:41.693Z","repository":{"id":70820240,"uuid":"566183617","full_name":"cidm-ph/nswgeo","owner":"cidm-ph","description":"Geospatial data and maps for New South Wales, Australia","archived":false,"fork":false,"pushed_at":"2026-03-19T22:36:18.000Z","size":25009,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-20T13:36:20.456Z","etag":null,"topics":["geospatial","geospatial-data","r"],"latest_commit_sha":null,"homepage":"https://cidm-ph.github.io/nswgeo/","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/cidm-ph.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":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-15T06:10:17.000Z","updated_at":"2026-03-19T22:32:22.000Z","dependencies_parsed_at":"2025-09-08T15:48:06.359Z","dependency_job_id":null,"html_url":"https://github.com/cidm-ph/nswgeo","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"ca523bfa6d4eda8a2ae5300fb8e966a429b87088"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cidm-ph/nswgeo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cidm-ph%2Fnswgeo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cidm-ph%2Fnswgeo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cidm-ph%2Fnswgeo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cidm-ph%2Fnswgeo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cidm-ph","download_url":"https://codeload.github.com/cidm-ph/nswgeo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cidm-ph%2Fnswgeo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["geospatial","geospatial-data","r"],"created_at":"2025-12-24T04:51:27.239Z","updated_at":"2026-04-02T14:11:41.686Z","avatar_url":"https://github.com/cidm-ph.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  markdown: \n    wrap: 72\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 = \"100%\"\n)\nlibrary(sf, quietly = TRUE)\nset.seed(2022)\n```\n\n# nswgeo\n\n\u003c!-- badges: start --\u003e\n[![nswgeo status badge](https://cidm-ph.r-universe.dev/badges/nswgeo)](https://cidm-ph.r-universe.dev)\n[![R-CMD-check](https://github.com/cidm-ph/nswgeo/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/cidm-ph/nswgeo/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/nswgeo)](https://CRAN.R-project.org/package=nswgeo)\n\u003c!-- badges: end --\u003e\n\nA collection of geospatial datasets and map plotting helpers for working\nwith New South Wales maps. The maps are registered with `{cartographer}`.\nThis package is not an official publication, merely a collection of handy data\nfrom public sources.\n\n## Installation\n\nYou can install nswgeo like so:\n\n``` r\n# CRAN release\ninstall.packages('nswgeo')\n\n# development version\ninstall.packages('nswgeo', repos = c('https://cidm-ph.r-universe.dev', 'https://cloud.r-project.org'))\n```\n\n## Examples\n\nThe data can be used directly with ggplot:\n\n```{r ggplot, fig.width=5, fig.height=4.7, fig.dpi=300}\nlibrary(nswgeo)\nlibrary(ggplot2)\n\nggplot(nswgeo::nsw) +\n  geom_sf(fill = \"white\", data = nswgeo::australia) +\n  geom_sf(fill = \"#9BCBEB\", colour = NA) +\n  geom_sf(fill = NA, colour = \"white\", data = nswgeo::lhd) +\n  geom_sf(fill = NA, colour = \"#002664\", linewidth = .8) +\n  annotate(\n    \"text\", x = 144, y = -27, label = \"New South Wales\",\n    angle = -5, size = 5, fontface = \"italic\", colour = \"#002664\"\n  ) +\n  coord_sf(crs = crs_gda2020_albers(), default_crs = crs_gda2020()) +\n  theme_minimal() +\n  theme(\n    panel.background = element_rect(fill = \"grey97\", colour = NA),\n    axis.title = element_blank(),\n  )\n```\n\nAlternatively, the data can be accessed through `{cartographer}`:\n\n```{r cartographer}\nlibrary(cartographer)\nhead(covid_cases_nsw)\n\ncovid_cases_nsw |\u003e\n  dplyr::count(lga) |\u003e\n  add_geometry(lga, feature_type = \"nswgeo.lga\") |\u003e\n  ggplot() +\n  geom_sf(aes(fill = n)) +\n  geom_sf(fill = NA, data = map_sf(\"nswgeo.lga\")) +\n  scale_fill_viridis_b(\"Cases\") +\n  theme_void()\n```\n\n## A note on resolution\n\nSome of the source datasets are very high resolution and would make this package\ntoo large if they were bundled. Accordingly, most data has been processed to\nreduce the resolution. You can see exactly what was done by looking at the\nscripts in `data-raw/`, which also help to download source data.\n\nIf you need higher resolution shapes, such as when zooming into specific postal\nareas, you're better off using the original datasets directly.\n\n## Other Australian data\n\n  * [`strayr`](https://runapp-aus.github.io/strayr/) helps with working with\n    data from the Australian Bureau of Statistics (ABS).\n  * [`absmapsdata`](https://github.com/wfmackey/absmapsdata) contains some\n    processed ABS geospatial data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidm-ph%2Fnswgeo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcidm-ph%2Fnswgeo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidm-ph%2Fnswgeo/lists"}