USING R FOR BASIC SPATIAL ANALYSIS