An Introduction to R for Spatial Analysis and Mapping