README.md 1.46 KB
Newer Older
Ben Anderson's avatar
Ben Anderson committed
1
2
# Mapping with R

Ben Anderson's avatar
Ben Anderson committed
3
4
Simple (and not so simple) examples of mapping data with R

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
You might also like https://git.soton.ac.uk/twr1m15/la_emissions_viz which drives https://rushby.shinyapps.io/LAemissions/

## data

The following example data is provided in this repository:

* Boundary data - for Solent region (various geographies: LA, LSOA, MSOA)
* Energy - area-based statistics for domestic electricity consumption (LSOA, MSOA)
* Lookup table for geographies

## rMappingExample

A simple example of mapping using R. Examples use Local Authority (LA) and Middle-layer Super Output Area (MSOA) geography and electricity consumption data (provided in `data` subfolder).

## ONS-open-geography

21
22
An example and resources for using the [ONS Open Geography portal](https://geoportal.statistics.gov.uk) to download geographical data and create maps  using `Leaflet` package.

23
24
25
26
## Resources

### Openstreetmap for base maps (i.e. map tiles/rasters)

Ben Anderson's avatar
Ben Anderson committed
27
28
29
 * [Edinburgh green space as an example with sf](https://ourcodingclub.github.io/tutorials/spatial-vector-sf/)
 * [Madrid supermarkets with sf](https://dominicroye.github.io/en/2018/accessing-openstreetmap-data-with-r/)
 * [Short term rentals in Halifax, Nova Scotia with sf](https://upgo.lab.mcgill.ca/2019/12/13/making-beautiful-maps/)
30
31
32
 
### Google maps for base maps

Ben Anderson's avatar
Ben Anderson committed
33
34
35
36
They want you to have an API key now. Yeah nah.

### tmap package - nice - check out the bubble geom

37
 * https://cran.r-project.org/web/packages/tmap/vignettes/tmap-getstarted.html