Skip to content

Commit a4473f8

Browse files
committed
Docs updates and routine maintenance
1 parent a579ac6 commit a4473f8

File tree

10 files changed

+75
-8
lines changed

10 files changed

+75
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Imports:
2727
Suggests:
2828
dplyr (>= 1.0.0),
2929
ggplot2,
30+
httr2,
3031
nngeo,
3132
readr,
3233
stringr

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2022
1+
YEAR: 2024
22
COPYRIGHT HOLDER: Western Sydney Local Health District, NSW Health

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2022 Western Sydney Local Health District, NSW Health
3+
Copyright (c) 2022-2024 Western Sydney Local Health District, NSW Health
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

R/utils.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
#' @examples
2424
#' normalise_state_names(c("nsw", "VIC", "overseas", "Queensland"))
2525
normalise_state_names <- function(names) {
26-
cartographer::resolve_feature_names(names, feature_type = "nswgeo.states",
27-
unmatched = "pass")
26+
cartographer::resolve_feature_names(
27+
names,
28+
feature_type = "nswgeo.states",
29+
unmatched = "pass"
30+
)
2831
}
2932

3033
#' Normalise postal codes

README.Rmd

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ set.seed(2022)
2727
<!-- badges: end -->
2828

2929
A collection of geospatial datasets and map plotting helpers for working
30-
with New South Wales maps. The maps are registered with `{cartographer}` and so
31-
are compatible with `{ggautomap}`.
30+
with New South Wales maps. The maps are registered with `{cartographer}`.
3231

3332
## Installation
3433

@@ -68,3 +67,19 @@ covid_cases_nsw |>
6867
theme_void()
6968
```
7069

70+
## A note on resolution
71+
72+
Some of the source datasets are very high resolution and would make this package
73+
too large if they were bundled. Accordingly, most data has been processed to
74+
reduce the resolution. You can see exactly what was done by looking at the
75+
scripts in `data-raw/`.
76+
77+
If you need higher resolution shapes, such as when zooming into specific postal
78+
areas, you're better off using the original datasets directly.
79+
80+
## Other Australian data
81+
82+
* [`strayr`](https://runapp-aus.github.io/strayr/) helps with working with
83+
data from the Australian Bureau of Statistics (ABS).
84+
* [`absmapsdata`](https://github.com/wfmackey/absmapsdata) contains some
85+
processed ABS geospatial data.

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ status](https://www.r-pkg.org/badges/version/nswgeo)](https://CRAN.R-project.org
1313
<!-- badges: end -->
1414

1515
A collection of geospatial datasets and map plotting helpers for working
16-
with New South Wales maps. The maps are registered with `{cartographer}`
17-
and so are compatible with `{ggautomap}`.
16+
with New South Wales maps. The maps are registered with
17+
`{cartographer}`.
1818

1919
## Installation
2020

@@ -66,3 +66,20 @@ covid_cases_nsw |>
6666
```
6767

6868
<img src="man/figures/README-cartographer-1.png" width="100%" />
69+
70+
## A note on resolution
71+
72+
Some of the source datasets are very high resolution and would make this
73+
package too large if they were bundled. Accordingly, most data has been
74+
processed to reduce the resolution. You can see exactly what was done by
75+
looking at the scripts in `data-raw/`.
76+
77+
If you need higher resolution shapes, such as when zooming into specific
78+
postal areas, you’re better off using the original datasets directly.
79+
80+
## Other Australian data
81+
82+
- [`strayr`](https://runapp-aus.github.io/strayr/) helps with working
83+
with data from the Australian Bureau of Statistics (ABS).
84+
- [`absmapsdata`](https://github.com/wfmackey/absmapsdata) contains some
85+
processed ABS geospatial data.

_pkgdown.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
11
url: https://cidm-ph.github.io/nswgeo/
22
template:
33
bootstrap: 5
4+
bootswatch: journal
5+
theme: solarized-light
46

7+
reference:
8+
- title: Map data
9+
desc: >
10+
Map data included with the package. This is normally a low resolution version
11+
of the original data. Intended for use with `sf`.
12+
contents:
13+
- australia
14+
- lhd
15+
- lga_nsw
16+
- nsw
17+
- phn
18+
- title: Tabular spatial data
19+
contents:
20+
- poa_lhd_concordance
21+
- postcodes
22+
- suburbs
23+
- title: Mapping helpers
24+
contents:
25+
- crs_gda2020
26+
- outline
27+
- title: Data cleaning
28+
contents:
29+
- normalise_postcodes
30+
- normalise_state_names
31+
- title: Package
32+
contents:
33+
- nswgeo-package
34+
- covid_cases_nsw
3.88 KB
Loading

man/figures/README-ggplot-1.png

15.9 KB
Loading

nswgeo.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 029eac82-151e-4850-a618-8000c1c02aee
23

34
RestoreWorkspace: No
45
SaveWorkspace: No

0 commit comments

Comments
 (0)