diff --git a/news/index.html b/news/index.html
index 4700666..9e401af 100644
--- a/news/index.html
+++ b/news/index.html
@@ -51,7 +51,7 @@
outline() for using them.
Add Greater Sydney boundary as sydney
dataset.
Slightly increase the resolution to 750 m instead of 1 km.
-Update to the 2023 ASGS release, including the 2023 LGA shapefile.
+Update to the 2023 ASGS release, including the 2023 LGA shapefile. Note that this means some field names changed (e.g. LGA_NAME_2021
to LGA_NAME_2023
).
nswgeo 0.3.3 CRAN release: 2023-05-05
diff --git a/pkgdown.yml b/pkgdown.yml
index cf38612..bb12765 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -2,7 +2,7 @@ pandoc: 2.19.2
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
-last_built: 2024-01-11T06:00Z
+last_built: 2024-01-11T06:08Z
urls:
reference: https://cidm-ph.github.io/nswgeo/reference
article: https://cidm-ph.github.io/nswgeo/articles
diff --git a/reference/figures/README-cartographer-1.png b/reference/figures/README-cartographer-1.png
index ec0856d..638f821 100644
Binary files a/reference/figures/README-cartographer-1.png and b/reference/figures/README-cartographer-1.png differ
diff --git a/reference/nsw_admin-1.png b/reference/nsw_admin-1.png
index 88b05c4..32f5def 100644
Binary files a/reference/nsw_admin-1.png and b/reference/nsw_admin-1.png differ
diff --git a/reference/nsw_admin.html b/reference/nsw_admin.html
index 63900a6..bbd6944 100644
--- a/reference/nsw_admin.html
+++ b/reference/nsw_admin.html
@@ -91,11 +91,8 @@
On this page
diff --git a/search.json b/search.json
index eb00319..d895a5d 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://cidm-ph.github.io/nswgeo/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Western Sydney Local Health District, NSW Health Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Carl Suster. Author, maintainer. Western Sydney Local Health District, NSW Health. Copyright holder.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Suster C (2024). nswgeo: Geospatial Data Maps New South Wales, Australia. R package version 0.3.3.9000, https://cidm-ph.github.io/nswgeo/, https://github.com/cidm-ph/nswgeo.","code":"@Manual{, title = {nswgeo: Geospatial Data and Maps for New South Wales, Australia}, author = {Carl Suster}, year = {2024}, note = {R package version 0.3.3.9000, https://cidm-ph.github.io/nswgeo/}, url = {https://github.com/cidm-ph/nswgeo}, }"},{"path":"https://cidm-ph.github.io/nswgeo/index.html","id":"nswgeo","dir":"","previous_headings":"","what":"Geospatial Data and Maps for New South Wales, Australia","title":"Geospatial Data and Maps for New South Wales, Australia","text":"collection geospatial datasets map plotting helpers working New South Wales maps. maps registered cartographer compatible ggautomap.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Geospatial Data and Maps for New South Wales, Australia","text":"can install nswgeo like :","code":"# CRAN release install.packages('nswgeo') # development version install.packages('nswgeo', repos = c('https://cidm-ph.r-universe.dev', 'https://cloud.r-project.org'))"},{"path":"https://cidm-ph.github.io/nswgeo/index.html","id":"examples","dir":"","previous_headings":"","what":"Examples","title":"Geospatial Data and Maps for New South Wales, Australia","text":"data can used directly ggplot: Alternatively, data can accessed cartographer:","code":"library(nswgeo) library(ggplot2) ggplot(nswgeo::lhd) + geom_sf(aes(fill = lhd_name), show.legend = FALSE) library(cartographer) head(covid_cases_nsw) #> # A tibble: 6 × 5 #> postcode lga lhd year type #> #> 1 2427 Mid-Coast Hunter New England 2022 B #> 2 2761 Blacktown Western Sydney 2021 A #> 3 2426 Mid-Coast Hunter New England 2022 B #> 4 2148 Blacktown Western Sydney 2022 B #> 5 2768 Blacktown Western Sydney 2021 A #> 6 2766 Blacktown Western Sydney 2021 B covid_cases_nsw |> dplyr::count(lga) |> add_geometry(lga, feature_type = \"nswgeo.lga\") |> ggplot() + geom_sf(aes(fill = n)) + geom_sf(fill = NA, data = map_sf(\"nswgeo.lga\")) + theme_void()"},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":null,"dir":"Reference","previous_headings":"","what":"Geospatial data of the Australian state and territory administrative boundaries. — australia","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"Excludes external territories.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"","code":"australia states"},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sf (inherits tbl_df, tbl, data.frame) 8 rows 9 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"Australian Bureau Statistics. \"Australian Statistical Geography Standard (ASGS) Edition 3.\" ABS, Jul2021-Jun2026, https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026, accessed 10 November 2022. original dataset published Creative Commons Attribution 4.0 International licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"geometries simplified tolerance 5 km reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"australia: External boundaries Australia multipolygon. states: State internal territory boundaries Australia.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"","code":"library(ggplot2) ggplot(states) + geom_sf(aes(fill = STE_NAME21))"},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":null,"dir":"Reference","previous_headings":"","what":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"subset covers random selection entries 3 LGAs, ignores case count field.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"","code":"covid_cases_nsw"},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"data frame 100 rows following columns: postcode postal code lhd name Local Health District lga name Local Government Area type synthetic disease type/lineage/etc., either B year Year case notification","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"NSW Ministry Health. \"NSW COVID-19 cases location.\" https://data.nsw.gov.au/data/dataset/covid-19-cases--location, accessed 11 October 2022. original dataset published Creative Commons Attribution 4.0 licence, © State New South Wales 2020-2022.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"","code":"head(covid_cases_nsw) #> # A tibble: 6 × 5 #> postcode lga lhd year type #> #> 1 2427 Mid-Coast Hunter New England 2022 B #> 2 2761 Blacktown Western Sydney 2021 A #> 3 2426 Mid-Coast Hunter New England 2022 B #> 4 2148 Blacktown Western Sydney 2022 B #> 5 2768 Blacktown Western Sydney 2021 A #> 6 2766 Blacktown Western Sydney 2021 B"},{"path":"https://cidm-ph.github.io/nswgeo/reference/crs_gda2020.html","id":null,"dir":"Reference","previous_headings":"","what":"Coordinate reference system for Australia — crs_gda2020","title":"Coordinate reference system for Australia — crs_gda2020","text":"GDA2020 official CRS used Commonwealth NSW. Geospatial data package uses GDA2020.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/crs_gda2020.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coordinate reference system for Australia — crs_gda2020","text":"","code":"crs_gda2020()"},{"path":"https://cidm-ph.github.io/nswgeo/reference/crs_gda2020.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coordinate reference system for Australia — crs_gda2020","text":"simple features CRS","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":null,"dir":"Reference","previous_headings":"","what":"Local Health Districts of NSW. — lhd","title":"Local Health Districts of NSW. — lhd","text":"geometries simplified tolerance 750 m reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Local Health Districts of NSW. — lhd","text":"","code":"lhd"},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Local Health Districts of NSW. — lhd","text":"object class sf (inherits tbl_df, tbl, data.frame) 15 rows 11 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Local Health Districts of NSW. — lhd","text":"Spatial Services, Department Customer Service NSW. \"MyHospitals_Public\", https://portal.spatial.nsw.gov.au/portal/home/item.html?id=78df4a3e987b4e7e8b241ee5bfeee358, accessed 4 May 2023. Republished NSW Ministry Health, \"Map local health districts\", https://www.health.nsw.gov.au/lhd/Pages/lhd-maps.aspx. original dataset published Creative Commons Attribution 4.0 International licence, © State New South Wales NSW Ministry Health 2023. current information go https://www.health.nsw.gov.au.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Local Health Districts of NSW. — lhd","text":"","code":"library(ggplot2) ggplot(lhd) + geom_sf(aes(fill = lhd_name), show.legend = FALSE)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Normalise postal codes — normalise_postcodes","title":"Normalise postal codes — normalise_postcodes","text":"special postcodes used addresses, codes post office boxes. helper converts postcode closest normal suburb reasonable clear match. good match, postcodes left unchanged.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Normalise postal codes — normalise_postcodes","text":"","code":"normalise_postcodes(codes)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Normalise postal codes — normalise_postcodes","text":"codes Character vector postcodes (coercible one).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Normalise postal codes — normalise_postcodes","text":"Character vector size input, normalised postcodes.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Normalise postal codes — normalise_postcodes","text":"Note goes little aliases registered cartographer (account postcodes geospatial data ABS dataset).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Normalise postal codes — normalise_postcodes","text":"","code":"normalise_postcodes(c(1685, 2000, 1010, 2129, 2145)) #> [1] \"2114\" \"2000\" \"2000\" \"2140\" \"2145\""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":null,"dir":"Reference","previous_headings":"","what":"Normalise state names from abbreviations — normalise_state_names","title":"Normalise state names from abbreviations — normalise_state_names","text":"Expand abbreviations like \"NSW\" \"New South Wales\", normalise title capitalisation. Entries match state name abbreviation left untouched.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Normalise state names from abbreviations — normalise_state_names","text":"","code":"normalise_state_names(names)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Normalise state names from abbreviations — normalise_state_names","text":"names Character vector state names.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Normalise state names from abbreviations — normalise_state_names","text":"Vector size input, normalised state names.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Normalise state names from abbreviations — normalise_state_names","text":"","code":"normalise_state_names(c(\"nsw\", \"VIC\", \"overseas\", \"Queensland\")) #> [1] \"New South Wales\" \"Victoria\" \"overseas\" \"Queensland\""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":null,"dir":"Reference","previous_headings":"","what":"Outlines of New South Wales and relevant territories. — nsw","title":"Outlines of New South Wales and relevant territories. — nsw","text":"Lord Howe Island administratively part NSW, small island 600 km coast, frequently omitted maps NSW.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Outlines of New South Wales and relevant territories. — nsw","text":"","code":"nsw act lhi jbt sydney"},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Outlines of New South Wales and relevant territories. — nsw","text":"object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_POLYGON (inherits sfc) length 1.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Outlines of New South Wales and relevant territories. — nsw","text":"Australian Bureau Statistics. \"Australian Statistical Geography Standard (ASGS) Edition 3.\" ABS, Jul2021-Jun2026, https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026, accessed 27 September 2022. original dataset published Creative Commons Attribution 4.0 International licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Outlines of New South Wales and relevant territories. — nsw","text":"Australian Capital Territory enclave within NSW, Jervis Bay Territory small Australian territory coast, surrounded NSW. Neither NSW territory, affect shape NSW's outline sometimes useful include maps alongside NSW due locations. geometry nsw simplified tolerance 750 m reduce level detail, whereas territories maintain full resolution. sydney simplified 500 m tolerance.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Outlines of New South Wales and relevant territories. — nsw","text":"nsw: External state boundary excluding LHI including ACT JBT. act: Australian Capital Territory boundary. lhi: Lord Howe Island boundary. jbt: Jervis Bay Territory boundary. sydney: Greater Sydney boundary.","code":""},{"path":[]},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":null,"dir":"Reference","previous_headings":"","what":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"include Unincorporated Far West Region. lga_nsw excludes Jervis Bay Territory ACT. poa_nsw includes territories postal areas extend past state boundary.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"","code":"lga_nsw poa_nsw"},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"object class sf (inherits tbl_df, tbl, data.frame) 131 rows 9 columns. object class sf (inherits tbl_df, tbl, data.frame) 644 rows 7 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"Australian Bureau Statistics. \"Australian Statistical Geography Standard (ASGS) Edition 3.\" ABS, Jul2021-Jun2026, https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026, accessed 27 September 2022. original dataset published Creative Commons Attribution 4.0 International licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"geometries simplified tolerance 750 m reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"lga_nsw: Local Government Area boundaries New South Wales. poa_nsw: Postal area boundaries New South Wales.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"","code":"library(ggplot2) ggplot(lga_nsw) + geom_sf(aes(fill = LGA_NAME_2021), show.legend = FALSE) #> Error in geom_sf(aes(fill = LGA_NAME_2021), show.legend = FALSE): Problem while computing aesthetics. #> ℹ Error occurred in the 1st layer. #> Caused by error: #> ! object 'LGA_NAME_2021' not found library(sf) #> Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE sf_use_s2(FALSE) #> Spherical geometry (s2) switched off # cut out part of the postcode dataset (it's quite large) bbox <- st_bbox(c(xmin = 142, xmax = 147, ymin = -33, ymax = -30)) |> st_as_sfc(crs = crs_gda2020()) st_crop(poa_nsw, bbox) |> ggplot() + geom_sf() + geom_sf_text(aes(label = POA_CODE_2021), size = 4) #> although coordinates are longitude/latitude, st_intersection assumes that they #> are planar #> Warning: attribute variables are assumed to be spatially constant throughout all geometries #> Warning: st_point_on_surface may not give correct results for longitude/latitude data"},{"path":"https://cidm-ph.github.io/nswgeo/reference/nswgeo-package.html","id":null,"dir":"Reference","previous_headings":"","what":"Geospatial Tools for New South Wales — nswgeo-package","title":"Geospatial Tools for New South Wales — nswgeo-package","text":"package contains geospatial data NSW border several types features. also contains map plotting helpers help get data frame plot common scenarios.","code":""},{"path":[]},{"path":"https://cidm-ph.github.io/nswgeo/reference/nswgeo-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Geospatial Tools for New South Wales — nswgeo-package","text":"Maintainer: Carl Suster Carl.Suster@health.nsw.gov.au (ORCID) contributors: Western Sydney Local Health District, NSW Health [copyright holder]","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":null,"dir":"Reference","previous_headings":"","what":"New South Wales outline with or without related territories — outline","title":"New South Wales outline with or without related territories — outline","text":"default outline nswgeo::nsw includes Jervis Bay Territory, excludes Lord Howe Island, cut ACT. utility allows adjusted.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"New South Wales outline with or without related territories — outline","text":"","code":"outline(lord_howe_island = FALSE, act_cutout = FALSE, jervis_bay = TRUE)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"New South Wales outline with or without related territories — outline","text":"lord_howe_island Include Lord Howe Island. act_cutout Cut area Australian Capital Territory. jervis_bay Cover area Jervis Bay Territory.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"New South Wales outline with or without related territories — outline","text":"simple features data frame requested geometries.","code":""},{"path":[]},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"New South Wales outline with or without related territories — outline","text":"","code":"library(ggplot2) outline(lord_howe_island = TRUE) |> ggplot() + geom_sf()"},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":null,"dir":"Reference","previous_headings":"","what":"Primary Health Network boundaries of New South Wales — phn","title":"Primary Health Network boundaries of New South Wales — phn","text":"geometries simplified tolerance 500 m reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Primary Health Network boundaries of New South Wales — phn","text":"","code":"phn"},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Primary Health Network boundaries of New South Wales — phn","text":"object class sf (inherits tbl_df, tbl, data.frame) 10 rows 9 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Primary Health Network boundaries of New South Wales — phn","text":"National Recovery Resilience Agency, \"PHN Boundaries used NBRA\", https://data.gov.au/data/dataset/phn-boundaries-used---nbra, accessed 25 May 2023. original dataset published Creative Commons Attribution 2.5 Australia licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Postal codes and localities of New South Wales. — postcodes","title":"Postal codes and localities of New South Wales. — postcodes","text":"Derived several government sources community curation. version additionally attempts canonicalise non-physical postcodes assist mapping.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Postal codes and localities of New South Wales. — postcodes","text":"","code":"postcodes"},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Postal codes and localities of New South Wales. — postcodes","text":"data frame 7 columns: postcode postal code locality suburb locality state NSW SA2_NAME_2016 Statistical Area 2 name assist disambiguating localities identical names special Flag indicating post office box, mail distribution centre special postal code old Flag indicating code appears superseded canonical closest canonical postal code, e.g. mapping post office boxes main suburb's postal code","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Postal codes and localities of New South Wales. — postcodes","text":"Matthew Proctor. \"Australian Postcodes\", https://www.matthewproctor.com/australian_postcodes, accessed 6 February 2023. original dataset released public domain.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Postal codes and localities of New South Wales. — postcodes","text":"","code":"set.seed(12345) postcodes[sort(sample.int(nrow(postcodes), 5)),] #> # A tibble: 5 × 7 #> postcode locality state SA2_NAME_2016 special old canonical #> #> 1 1118 SYDNEY NSW Sydney - Haymarket -… TRUE NA 2000 #> 2 2161 OLD GUILDFORD NSW Fairfield - East NA NA 2161 #> 3 2164 WETHERILL PARK BC NSW Wetherill Park Indus… NA NA 2164 #> 4 2469 JOES BOX NSW Casino Region NA NA 2469 #> 5 2849 PYANGLE NSW Mudgee Region - East NA NA 2849"},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":null,"dir":"Reference","previous_headings":"","what":"Suburbs of New South Wales. — suburbs","title":"Suburbs of New South Wales. — suburbs","text":"dataset containing names suburbs NSW postcodes. fields extracted -source dataset published DCS Spatial Services, NSW Government.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Suburbs of New South Wales. — suburbs","text":"","code":"suburbs"},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Suburbs of New South Wales. — suburbs","text":"data frame 2 columns: suburbname name suburb, upper case postcode main postcode suburb, character","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Suburbs of New South Wales. — suburbs","text":"Spatial Services, Department Customer Service NSW. \"NSW Administrative Boundaries Theme - Suburb.\" https://portal.spatial.nsw.gov.au/portal/home/item.html?id=38bdaa10b7cc41a3a19be6eca91f5368, accessed 21 September 2022. original dataset published Creative Commons Attribution 4.0 International licence, © State New South Wales (Spatial Services, business unit Department Customer Service NSW).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/news/index.html","id":"nswgeo-development-version","dir":"Changelog","previous_headings":"","what":"nswgeo (development version)","title":"nswgeo (development version)","text":"Add Primary Health Network (PHN) map data phn dataset. Fixed poa_nsw dataset avoid strange geometries near state border. Added geometries Lord Howe Island, Australian Capital Territory, Jervis Bay Territory, utility function outline() using . Add Greater Sydney boundary sydney dataset. Slightly increase resolution 750 m instead 1 km. Update 2023 ASGS release, including 2023 LGA shapefile.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/news/index.html","id":"nswgeo-033","dir":"Changelog","previous_headings":"","what":"nswgeo 0.3.3","title":"nswgeo 0.3.3","text":"CRAN release: 2023-05-05 Initial CRAN release.","code":""}]
+[{"path":"https://cidm-ph.github.io/nswgeo/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Western Sydney Local Health District, NSW Health Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Carl Suster. Author, maintainer. Western Sydney Local Health District, NSW Health. Copyright holder.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Suster C (2024). nswgeo: Geospatial Data Maps New South Wales, Australia. R package version 0.3.3.9000, https://cidm-ph.github.io/nswgeo/, https://github.com/cidm-ph/nswgeo.","code":"@Manual{, title = {nswgeo: Geospatial Data and Maps for New South Wales, Australia}, author = {Carl Suster}, year = {2024}, note = {R package version 0.3.3.9000, https://cidm-ph.github.io/nswgeo/}, url = {https://github.com/cidm-ph/nswgeo}, }"},{"path":"https://cidm-ph.github.io/nswgeo/index.html","id":"nswgeo","dir":"","previous_headings":"","what":"Geospatial Data and Maps for New South Wales, Australia","title":"Geospatial Data and Maps for New South Wales, Australia","text":"collection geospatial datasets map plotting helpers working New South Wales maps. maps registered cartographer compatible ggautomap.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Geospatial Data and Maps for New South Wales, Australia","text":"can install nswgeo like :","code":"# CRAN release install.packages('nswgeo') # development version install.packages('nswgeo', repos = c('https://cidm-ph.r-universe.dev', 'https://cloud.r-project.org'))"},{"path":"https://cidm-ph.github.io/nswgeo/index.html","id":"examples","dir":"","previous_headings":"","what":"Examples","title":"Geospatial Data and Maps for New South Wales, Australia","text":"data can used directly ggplot: Alternatively, data can accessed cartographer:","code":"library(nswgeo) library(ggplot2) ggplot(nswgeo::lhd) + geom_sf(aes(fill = lhd_name), show.legend = FALSE) library(cartographer) head(covid_cases_nsw) #> # A tibble: 6 × 5 #> postcode lga lhd year type #> #> 1 2427 Mid-Coast Hunter New England 2022 B #> 2 2761 Blacktown Western Sydney 2021 A #> 3 2426 Mid-Coast Hunter New England 2022 B #> 4 2148 Blacktown Western Sydney 2022 B #> 5 2768 Blacktown Western Sydney 2021 A #> 6 2766 Blacktown Western Sydney 2021 B covid_cases_nsw |> dplyr::count(lga) |> add_geometry(lga, feature_type = \"nswgeo.lga\") |> ggplot() + geom_sf(aes(fill = n)) + geom_sf(fill = NA, data = map_sf(\"nswgeo.lga\")) + theme_void()"},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":null,"dir":"Reference","previous_headings":"","what":"Geospatial data of the Australian state and territory administrative boundaries. — australia","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"Excludes external territories.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"","code":"australia states"},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sf (inherits tbl_df, tbl, data.frame) 8 rows 9 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"Australian Bureau Statistics. \"Australian Statistical Geography Standard (ASGS) Edition 3.\" ABS, Jul2021-Jun2026, https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026, accessed 10 November 2022. original dataset published Creative Commons Attribution 4.0 International licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"geometries simplified tolerance 5 km reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"australia: External boundaries Australia multipolygon. states: State internal territory boundaries Australia.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/australia.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Geospatial data of the Australian state and territory administrative boundaries. — australia","text":"","code":"library(ggplot2) ggplot(states) + geom_sf(aes(fill = STE_NAME21))"},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":null,"dir":"Reference","previous_headings":"","what":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"subset covers random selection entries 3 LGAs, ignores case count field.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"","code":"covid_cases_nsw"},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"data frame 100 rows following columns: postcode postal code lhd name Local Health District lga name Local Government Area type synthetic disease type/lineage/etc., either B year Year case notification","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"NSW Ministry Health. \"NSW COVID-19 cases location.\" https://data.nsw.gov.au/data/dataset/covid-19-cases--location, accessed 11 October 2022. original dataset published Creative Commons Attribution 4.0 licence, © State New South Wales 2020-2022.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/covid_cases_nsw.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Small sample of COVID-19 cases in NSW for testing and demonstration. — covid_cases_nsw","text":"","code":"head(covid_cases_nsw) #> # A tibble: 6 × 5 #> postcode lga lhd year type #> #> 1 2427 Mid-Coast Hunter New England 2022 B #> 2 2761 Blacktown Western Sydney 2021 A #> 3 2426 Mid-Coast Hunter New England 2022 B #> 4 2148 Blacktown Western Sydney 2022 B #> 5 2768 Blacktown Western Sydney 2021 A #> 6 2766 Blacktown Western Sydney 2021 B"},{"path":"https://cidm-ph.github.io/nswgeo/reference/crs_gda2020.html","id":null,"dir":"Reference","previous_headings":"","what":"Coordinate reference system for Australia — crs_gda2020","title":"Coordinate reference system for Australia — crs_gda2020","text":"GDA2020 official CRS used Commonwealth NSW. Geospatial data package uses GDA2020.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/crs_gda2020.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Coordinate reference system for Australia — crs_gda2020","text":"","code":"crs_gda2020()"},{"path":"https://cidm-ph.github.io/nswgeo/reference/crs_gda2020.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Coordinate reference system for Australia — crs_gda2020","text":"simple features CRS","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":null,"dir":"Reference","previous_headings":"","what":"Local Health Districts of NSW. — lhd","title":"Local Health Districts of NSW. — lhd","text":"geometries simplified tolerance 750 m reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Local Health Districts of NSW. — lhd","text":"","code":"lhd"},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Local Health Districts of NSW. — lhd","text":"object class sf (inherits tbl_df, tbl, data.frame) 15 rows 11 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Local Health Districts of NSW. — lhd","text":"Spatial Services, Department Customer Service NSW. \"MyHospitals_Public\", https://portal.spatial.nsw.gov.au/portal/home/item.html?id=78df4a3e987b4e7e8b241ee5bfeee358, accessed 4 May 2023. Republished NSW Ministry Health, \"Map local health districts\", https://www.health.nsw.gov.au/lhd/Pages/lhd-maps.aspx. original dataset published Creative Commons Attribution 4.0 International licence, © State New South Wales NSW Ministry Health 2023. current information go https://www.health.nsw.gov.au.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/lhd.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Local Health Districts of NSW. — lhd","text":"","code":"library(ggplot2) ggplot(lhd) + geom_sf(aes(fill = lhd_name), show.legend = FALSE)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Normalise postal codes — normalise_postcodes","title":"Normalise postal codes — normalise_postcodes","text":"special postcodes used addresses, codes post office boxes. helper converts postcode closest normal suburb reasonable clear match. good match, postcodes left unchanged.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Normalise postal codes — normalise_postcodes","text":"","code":"normalise_postcodes(codes)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Normalise postal codes — normalise_postcodes","text":"codes Character vector postcodes (coercible one).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Normalise postal codes — normalise_postcodes","text":"Character vector size input, normalised postcodes.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Normalise postal codes — normalise_postcodes","text":"Note goes little aliases registered cartographer (account postcodes geospatial data ABS dataset).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_postcodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Normalise postal codes — normalise_postcodes","text":"","code":"normalise_postcodes(c(1685, 2000, 1010, 2129, 2145)) #> [1] \"2114\" \"2000\" \"2000\" \"2140\" \"2145\""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":null,"dir":"Reference","previous_headings":"","what":"Normalise state names from abbreviations — normalise_state_names","title":"Normalise state names from abbreviations — normalise_state_names","text":"Expand abbreviations like \"NSW\" \"New South Wales\", normalise title capitalisation. Entries match state name abbreviation left untouched.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Normalise state names from abbreviations — normalise_state_names","text":"","code":"normalise_state_names(names)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Normalise state names from abbreviations — normalise_state_names","text":"names Character vector state names.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Normalise state names from abbreviations — normalise_state_names","text":"Vector size input, normalised state names.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/normalise_state_names.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Normalise state names from abbreviations — normalise_state_names","text":"","code":"normalise_state_names(c(\"nsw\", \"VIC\", \"overseas\", \"Queensland\")) #> [1] \"New South Wales\" \"Victoria\" \"overseas\" \"Queensland\""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":null,"dir":"Reference","previous_headings":"","what":"Outlines of New South Wales and relevant territories. — nsw","title":"Outlines of New South Wales and relevant territories. — nsw","text":"Lord Howe Island administratively part NSW, small island 600 km coast, frequently omitted maps NSW.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Outlines of New South Wales and relevant territories. — nsw","text":"","code":"nsw act lhi jbt sydney"},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Outlines of New South Wales and relevant territories. — nsw","text":"object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_MULTIPOLYGON (inherits sfc) length 1. object class sfc_POLYGON (inherits sfc) length 1.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Outlines of New South Wales and relevant territories. — nsw","text":"Australian Bureau Statistics. \"Australian Statistical Geography Standard (ASGS) Edition 3.\" ABS, Jul2021-Jun2026, https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026, accessed 27 September 2022. original dataset published Creative Commons Attribution 4.0 International licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Outlines of New South Wales and relevant territories. — nsw","text":"Australian Capital Territory enclave within NSW, Jervis Bay Territory small Australian territory coast, surrounded NSW. Neither NSW territory, affect shape NSW's outline sometimes useful include maps alongside NSW due locations. geometry nsw simplified tolerance 750 m reduce level detail, whereas territories maintain full resolution. sydney simplified 500 m tolerance.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Outlines of New South Wales and relevant territories. — nsw","text":"nsw: External state boundary excluding LHI including ACT JBT. act: Australian Capital Territory boundary. lhi: Lord Howe Island boundary. jbt: Jervis Bay Territory boundary. sydney: Greater Sydney boundary.","code":""},{"path":[]},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":null,"dir":"Reference","previous_headings":"","what":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"include Unincorporated Far West Region. lga_nsw excludes Jervis Bay Territory ACT. poa_nsw includes territories postal areas extend past state boundary.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"","code":"lga_nsw poa_nsw"},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"object class sf (inherits tbl_df, tbl, data.frame) 131 rows 9 columns. object class sf (inherits tbl_df, tbl, data.frame) 644 rows 7 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"Australian Bureau Statistics. \"Australian Statistical Geography Standard (ASGS) Edition 3.\" ABS, Jul2021-Jun2026, https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026, accessed 27 September 2022. original dataset published Creative Commons Attribution 4.0 International licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"geometries simplified tolerance 750 m reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"lga_nsw: Local Government Area boundaries New South Wales. poa_nsw: Postal area boundaries New South Wales.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/nsw_admin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Geospatial data of the New South Wales administrative boundaries. — lga_nsw","text":"","code":"library(ggplot2) ggplot(lga_nsw) + geom_sf(aes(fill = LGA_NAME_2023), show.legend = FALSE) library(sf) #> Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE sf_use_s2(FALSE) #> Spherical geometry (s2) switched off # cut out part of the postcode dataset (it's quite large) bbox <- st_bbox(c(xmin = 142, xmax = 147, ymin = -33, ymax = -30)) |> st_as_sfc(crs = crs_gda2020()) st_crop(poa_nsw, bbox) |> ggplot() + geom_sf() + geom_sf_text(aes(label = POA_CODE_2021), size = 4) #> although coordinates are longitude/latitude, st_intersection assumes that they #> are planar #> Warning: attribute variables are assumed to be spatially constant throughout all geometries #> Warning: st_point_on_surface may not give correct results for longitude/latitude data"},{"path":"https://cidm-ph.github.io/nswgeo/reference/nswgeo-package.html","id":null,"dir":"Reference","previous_headings":"","what":"Geospatial Tools for New South Wales — nswgeo-package","title":"Geospatial Tools for New South Wales — nswgeo-package","text":"package contains geospatial data NSW border several types features. also contains map plotting helpers help get data frame plot common scenarios.","code":""},{"path":[]},{"path":"https://cidm-ph.github.io/nswgeo/reference/nswgeo-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Geospatial Tools for New South Wales — nswgeo-package","text":"Maintainer: Carl Suster Carl.Suster@health.nsw.gov.au (ORCID) contributors: Western Sydney Local Health District, NSW Health [copyright holder]","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":null,"dir":"Reference","previous_headings":"","what":"New South Wales outline with or without related territories — outline","title":"New South Wales outline with or without related territories — outline","text":"default outline nswgeo::nsw includes Jervis Bay Territory, excludes Lord Howe Island, cut ACT. utility allows adjusted.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"New South Wales outline with or without related territories — outline","text":"","code":"outline(lord_howe_island = FALSE, act_cutout = FALSE, jervis_bay = TRUE)"},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"New South Wales outline with or without related territories — outline","text":"lord_howe_island Include Lord Howe Island. act_cutout Cut area Australian Capital Territory. jervis_bay Cover area Jervis Bay Territory.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"New South Wales outline with or without related territories — outline","text":"simple features data frame requested geometries.","code":""},{"path":[]},{"path":"https://cidm-ph.github.io/nswgeo/reference/outline.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"New South Wales outline with or without related territories — outline","text":"","code":"library(ggplot2) outline(lord_howe_island = TRUE) |> ggplot() + geom_sf()"},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":null,"dir":"Reference","previous_headings":"","what":"Primary Health Network boundaries of New South Wales — phn","title":"Primary Health Network boundaries of New South Wales — phn","text":"geometries simplified tolerance 500 m reduce level detail.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Primary Health Network boundaries of New South Wales — phn","text":"","code":"phn"},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Primary Health Network boundaries of New South Wales — phn","text":"object class sf (inherits tbl_df, tbl, data.frame) 10 rows 9 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/phn.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Primary Health Network boundaries of New South Wales — phn","text":"National Recovery Resilience Agency, \"PHN Boundaries used NBRA\", https://data.gov.au/data/dataset/phn-boundaries-used---nbra, accessed 25 May 2023. original dataset published Creative Commons Attribution 2.5 Australia licence, © Commonwealth Australia 2021.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":null,"dir":"Reference","previous_headings":"","what":"Postal codes and localities of New South Wales. — postcodes","title":"Postal codes and localities of New South Wales. — postcodes","text":"Derived several government sources community curation. version additionally attempts canonicalise non-physical postcodes assist mapping.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Postal codes and localities of New South Wales. — postcodes","text":"","code":"postcodes"},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Postal codes and localities of New South Wales. — postcodes","text":"data frame 7 columns: postcode postal code locality suburb locality state NSW SA2_NAME_2016 Statistical Area 2 name assist disambiguating localities identical names special Flag indicating post office box, mail distribution centre special postal code old Flag indicating code appears superseded canonical closest canonical postal code, e.g. mapping post office boxes main suburb's postal code","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Postal codes and localities of New South Wales. — postcodes","text":"Matthew Proctor. \"Australian Postcodes\", https://www.matthewproctor.com/australian_postcodes, accessed 6 February 2023. original dataset released public domain.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/postcodes.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Postal codes and localities of New South Wales. — postcodes","text":"","code":"set.seed(12345) postcodes[sort(sample.int(nrow(postcodes), 5)),] #> # A tibble: 5 × 7 #> postcode locality state SA2_NAME_2016 special old canonical #> #> 1 1118 SYDNEY NSW Sydney - Haymarket -… TRUE NA 2000 #> 2 2161 OLD GUILDFORD NSW Fairfield - East NA NA 2161 #> 3 2164 WETHERILL PARK BC NSW Wetherill Park Indus… NA NA 2164 #> 4 2469 JOES BOX NSW Casino Region NA NA 2469 #> 5 2849 PYANGLE NSW Mudgee Region - East NA NA 2849"},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":null,"dir":"Reference","previous_headings":"","what":"Suburbs of New South Wales. — suburbs","title":"Suburbs of New South Wales. — suburbs","text":"dataset containing names suburbs NSW postcodes. fields extracted -source dataset published DCS Spatial Services, NSW Government.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Suburbs of New South Wales. — suburbs","text":"","code":"suburbs"},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Suburbs of New South Wales. — suburbs","text":"data frame 2 columns: suburbname name suburb, upper case postcode main postcode suburb, character","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/suburbs.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Suburbs of New South Wales. — suburbs","text":"Spatial Services, Department Customer Service NSW. \"NSW Administrative Boundaries Theme - Suburb.\" https://portal.spatial.nsw.gov.au/portal/home/item.html?id=38bdaa10b7cc41a3a19be6eca91f5368, accessed 21 September 2022. original dataset published Creative Commons Attribution 4.0 International licence, © State New South Wales (Spatial Services, business unit Department Customer Service NSW).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/news/index.html","id":"nswgeo-development-version","dir":"Changelog","previous_headings":"","what":"nswgeo (development version)","title":"nswgeo (development version)","text":"Add Primary Health Network (PHN) map data phn dataset. Fixed poa_nsw dataset avoid strange geometries near state border. Added geometries Lord Howe Island, Australian Capital Territory, Jervis Bay Territory, utility function outline() using . Add Greater Sydney boundary sydney dataset. Slightly increase resolution 750 m instead 1 km. Update 2023 ASGS release, including 2023 LGA shapefile. Note means field names changed (e.g. LGA_NAME_2021 LGA_NAME_2023).","code":""},{"path":"https://cidm-ph.github.io/nswgeo/news/index.html","id":"nswgeo-033","dir":"Changelog","previous_headings":"","what":"nswgeo 0.3.3","title":"nswgeo 0.3.3","text":"CRAN release: 2023-05-05 Initial CRAN release.","code":""}]