Source: https://seapa.org/applied_spatial_data_analysis_with_r.pdf