-
Notifications
You must be signed in to change notification settings - Fork 5
/
mmc_surrounds.Rmd
84 lines (56 loc) · 1.46 KB
/
mmc_surrounds.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
title: "Choropleth - stroke by postcode"
output:
html_document:
toc: true
toc_float: true
number_sections: false
theme: flatly
md_document:
variant: markdown_github
number_sections: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
warning = TRUE,
message = TRUE,
width = 120,
comment = "#>",
fig.retina = 2,
fig.path = "README-",
fig.width = 10
)
knitr::read_chunk("mmc_surrounds.R")
```
Choropleths are a staple of geospatial visualization. The idea of this
example is to introduced those basics in stroke context.
The example loads the data, estimates annual stroke incidence based on data
from the NEMISIS study, performs a join, calculates some
geospatial measures, filters postcodes based on distance to the hospital and displays the results.
## 0. Package loading
```{r RPackageCheck, echo=FALSE}
```
```{r Libraries, message=FALSE}
```
## 1. Loading census and boundary data
```{r CensusData, message=FALSE, warning=FALSE}
```
## 2. Combine demographics and spatial data
```{r JoinCensusAndBoundaries}
```
## 3. Geocode hospital location
```{r MonashMedicalCentre}
```
## 4. Compute per-postcode stroke incidence
```{r StrokeIncidence}
```
## 5. Compute distance to hospital from postcode
```{r SpatialComputations}
```
## 6. Discard remote postcodes
```{r FilteringPostcodes}
```
## 7. Interactive display of the result
```{r InteractiveDisplay}
```