diff --git a/news/index.html b/news/index.html index 9e401af..dc2f4af 100644 --- a/news/index.html +++ b/news/index.html @@ -46,12 +46,14 @@

nswgeo (development version)

-

nswgeo 0.3.3

CRAN release: 2023-05-05

diff --git a/pkgdown.yml b/pkgdown.yml index bb12765..071b674 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:08Z +last_built: 2024-01-17T04:15Z urls: reference: https://cidm-ph.github.io/nswgeo/reference article: https://cidm-ph.github.io/nswgeo/articles diff --git a/reference/crs_gda2020.html b/reference/crs_gda2020.html index e8486c3..c5dce35 100644 --- a/reference/crs_gda2020.html +++ b/reference/crs_gda2020.html @@ -60,7 +60,11 @@

Usage

-
crs_gda2020()
+
crs_gda2020()
+
+crs_gda2020_cartesian()
+
+crs_gda2020_albers()
@@ -69,6 +73,13 @@

Value

A simple features CRS

+
+

Details

+

crs_gda2020 is EPSG 7844 with axes specified in degrees. +crs_gda2020_cartesian is EPSG 7842 with Cartesian axes in metres. +crs_gda2020_albers is EPSG 9473, the Albers equal area projection used for +area computation.

+
diff --git a/reference/index.html b/reference/index.html index 6d5bbc7..a0de19a 100644 --- a/reference/index.html +++ b/reference/index.html @@ -66,7 +66,7 @@

All functionscrs_gda2020() + crs_gda2020() crs_gda2020_cartesian() crs_gda2020_albers()
Coordinate reference system for Australia
@@ -111,6 +111,11 @@

All functionspoa_lhd_concordance +

+
Concordance between postal areas and local health districts.
+
+ postcodes
Postal codes and localities of New South Wales.
diff --git a/reference/nsw_admin.html b/reference/nsw_admin.html index bbd6944..017455a 100644 --- a/reference/nsw_admin.html +++ b/reference/nsw_admin.html @@ -85,7 +85,7 @@

DetailsFunctions

diff --git a/reference/poa_lhd_concordance.html b/reference/poa_lhd_concordance.html new file mode 100644 index 0000000..9a24d61 --- /dev/null +++ b/reference/poa_lhd_concordance.html @@ -0,0 +1,137 @@ + +Concordance between postal areas and local health districts. — poa_lhd_concordance • nswgeo + Skip to contents + + +
+
+
+ +
+

Contains the other administrative geometries which intersect with the local +health district boundaries, along with the size of the intersection.

+
+ +
+

Usage

+
poa_lhd_concordance
+
+ +
+

Format

+

An object of class data.frame with 825 rows and 5 columns.

+
+
+

Source

+

Computed using the same source datasets as lhd and poa_nsw.

+
+
+

Details

+

For geographic regions used by the Australian Bureau of Statistics (ABS), the +ABS publishes correspondence files. +These files compare how two different types of regions align with each other. +The Australian Government Department of Health and Aged Care published +analogous concordance files +for primary health networks (PHNs). +These are useful for mapping between different types of administrative +districts. +There does not appear to be a publicly available set of concordance files for +New South Wales local health district geographies.

+

The concordance was computed here by intersecting the ABS geometries with the +local health district geometries. The fraction of the ABS geometry's area +included in the intersection is reported in the column FRAC_INCLUDED. +Any intersection with FRAC_INCLUDED at least 0.01% was retained. +Area computations were performed in crs_gda2020_albers() (EPSG 9473 equal +area Albers) coordinates at the original reolution of the source data.

+

Note that postal areas +are not precisely the same as postcodes used by Australia Post, however they +are very similar.

+
+ +
+

Examples

+
library(dplyr)
+#> 
+#> Attaching package: ‘dplyr’
+#> The following objects are masked from ‘package:stats’:
+#> 
+#>     filter, lag
+#> The following objects are masked from ‘package:base’:
+#> 
+#>     intersect, setdiff, setequal, union
+
+# postcodes that overlap with Murrumbidgee LHD
+poa_lhd_concordance |>
+  filter(lhd_name == "Murrumbidgee", FRAC_INCLUDED > 0.005) |>
+  arrange(desc(FRAC_INCLUDED)) |>
+  pull(POA_NAME_2021)
+#>  [1] "2644" "2646" "2649" "2653" "2659" "2660" "2712" "2713" "2643" "2645"
+#> [11] "2647" "2650" "2651" "2655" "2656" "2658" "2661" "2710" "2716" "2729"
+#> [21] "2730" "2731" "2732" "2590" "2663" "2678" "2700" "2701" "2702" "2707"
+#> [31] "2722" "2726" "2733" "2734" "2735" "2587" "2588" "2652" "2665" "2680"
+#> [41] "2703" "2705" "2706" "2725" "2666" "2668" "2681" "2586" "2669" "2714"
+#> [51] "2727" "2720" "2675" "2803" "2585" "2736" "2642" "2672" "2594" "2671"
+#> [61] "2640" "2711" "2721" "2808" "2611" "3644" "2807" "2629" "2627" "2794"
+#> [71] "2582" "2878" "2583" "3707" "2715"
+
+
+
+ + +
+ + + +
+ + + + + + + diff --git a/search.json b/search.json index d895a5d..debd1c3 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_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":""}] +[{"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() crs_gda2020_cartesian() crs_gda2020_albers()"},{"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/crs_gda2020.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Coordinate reference system for Australia — crs_gda2020","text":"crs_gda2020 EPSG 7844 axes specified degrees. crs_gda2020_cartesian EPSG 7842 Cartesian axes metres. crs_gda2020_albers EPSG 9473, Albers equal area projection used area computation.","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/poa_lhd_concordance.html","id":null,"dir":"Reference","previous_headings":"","what":"Concordance between postal areas and local health districts. — poa_lhd_concordance","title":"Concordance between postal areas and local health districts. — poa_lhd_concordance","text":"Contains administrative geometries intersect local health district boundaries, along size intersection.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/poa_lhd_concordance.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Concordance between postal areas and local health districts. — poa_lhd_concordance","text":"","code":"poa_lhd_concordance"},{"path":"https://cidm-ph.github.io/nswgeo/reference/poa_lhd_concordance.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Concordance between postal areas and local health districts. — poa_lhd_concordance","text":"object class data.frame 825 rows 5 columns.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/poa_lhd_concordance.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Concordance between postal areas and local health districts. — poa_lhd_concordance","text":"Computed using source datasets lhd poa_nsw.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/poa_lhd_concordance.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Concordance between postal areas and local health districts. — poa_lhd_concordance","text":"geographic regions used Australian Bureau Statistics (ABS), ABS publishes correspondence files. files compare two different types regions align . Australian Government Department Health Aged Care published analogous concordance files primary health networks (PHNs). useful mapping different types administrative districts. appear publicly available set concordance files New South Wales local health district geographies. concordance computed intersecting ABS geometries local health district geometries. fraction ABS geometry's area included intersection reported column FRAC_INCLUDED. intersection FRAC_INCLUDED least 0.01% retained. Area computations performed crs_gda2020_albers() (EPSG 9473 equal area Albers) coordinates original reolution source data. Note postal areas precisely postcodes used Australia Post, however similar.","code":""},{"path":"https://cidm-ph.github.io/nswgeo/reference/poa_lhd_concordance.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Concordance between postal areas and local health districts. — poa_lhd_concordance","text":"","code":"library(dplyr) #> #> Attaching package: ‘dplyr’ #> The following objects are masked from ‘package:stats’: #> #> filter, lag #> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union # postcodes that overlap with Murrumbidgee LHD poa_lhd_concordance |> filter(lhd_name == \"Murrumbidgee\", FRAC_INCLUDED > 0.005) |> arrange(desc(FRAC_INCLUDED)) |> pull(POA_NAME_2021) #> [1] \"2644\" \"2646\" \"2649\" \"2653\" \"2659\" \"2660\" \"2712\" \"2713\" \"2643\" \"2645\" #> [11] \"2647\" \"2650\" \"2651\" \"2655\" \"2656\" \"2658\" \"2661\" \"2710\" \"2716\" \"2729\" #> [21] \"2730\" \"2731\" \"2732\" \"2590\" \"2663\" \"2678\" \"2700\" \"2701\" \"2702\" \"2707\" #> [31] \"2722\" \"2726\" \"2733\" \"2734\" \"2735\" \"2587\" \"2588\" \"2652\" \"2665\" \"2680\" #> [41] \"2703\" \"2705\" \"2706\" \"2725\" \"2666\" \"2668\" \"2681\" \"2586\" \"2669\" \"2714\" #> [51] \"2727\" \"2720\" \"2675\" \"2803\" \"2585\" \"2736\" \"2642\" \"2672\" \"2594\" \"2671\" #> [61] \"2640\" \"2711\" \"2721\" \"2808\" \"2611\" \"3644\" \"2807\" \"2629\" \"2627\" \"2794\" #> [71] \"2582\" \"2878\" \"2583\" \"3707\" \"2715\""},{"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 nswgeo::phn dataset. Fixed nswgeo::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 nswgeo::sydney dataset. Slightly increase resolution maps 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). Add new coordinate system references relevant Australia (crs_gda2020_cartesian() crs_gda2020_albers()). Add concordance file ABS postal areas local health districts (nswgeo::poa_lhd_concordance).","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":""}] diff --git a/sitemap.xml b/sitemap.xml index 18263fb..df478b5 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -54,6 +54,9 @@ https://cidm-ph.github.io/nswgeo/reference/phn.html + + https://cidm-ph.github.io/nswgeo/reference/poa_lhd_concordance.html + https://cidm-ph.github.io/nswgeo/reference/postcodes.html