1 #+date: <2017-10-12 21:30:51 +0800>
2 #+filetags R spatial analysi visualisation
3 #+title: Using spatial features and openstreetmap
5 Turns out it is possible, thanks to the good folks at
6 [[http://stamen.com][Stamen Design]], to get fairly unobtrusive maps based
7 on the OpenStreetMap data.
9 Combining this with a SLIP dataset from the Western Australian
10 government on active schools in the state provided a good opportunity to
11 check out the recently released
12 [[https://cran.r-project.org/web/packages/sf/index.html][sf (Simple
13 Features) package]] in R.
15 Simple features are a standardized way to encode spatial vector data.
16 Support in R was added in November 2016. For users of the tidyverse,
17 this makes manipulating shapefiles and the likes easier, as simple
18 features in R are dataframes!
20 #+CAPTION: Plot of secondary schools by student population.
21 #+ATTR_HTML: :class img-fluid :alt Plot of secondary schools by student population.
22 [[file:../assets/Western_Australia_metro_secondary_schools.png]]
24 [[http://git.vanrenterghem.biz/?p=R/project-wa-schools.git;a=summary][Full