nsw: Geospatial data of the New South Wales administrative...

nswR Documentation

Geospatial data of the New South Wales administrative boundaries.

Description

Excludes the borders with the ACT and Jervis Bay Territory, and Lord Howe Island.

Usage

nsw

lga_nsw

poa_nsw

Format

An object of class sfc_MULTIPOLYGON (inherits from sfc) of length 1.

An object of class sf (inherits from tbl_df, tbl, data.frame) with 131 rows and 9 columns.

An object of class sf (inherits from tbl_df, tbl, data.frame) with 715 rows and 7 columns.

Details

The geometries have been simplified with a tolerance of 1 km to reduce the level of detail.

Functions

  • nsw: External boundaries of New South Wales as a multipolygon.

  • lga_nsw: Local Government Area boundaries of New South Wales.

  • poa_nsw: Postal area boundaries of New South Wales.

Source

Australian Bureau of 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.

The original dataset is published under the Creative Commons Attribution 4.0 International licence, © Commonwealth of Australia 2021.

Examples

library(ggplot2)
ggplot(lga_nsw) + geom_sf(aes(fill = LGA_NAME_2021), show.legend = FALSE)

library(sf)
sf_use_s2(FALSE)
# 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)

nswgeo documentation built on May 31, 2023, 6:46 p.m.