Spatial data in R: using R as a GIS (tutorial)