June 2007
Beginner to intermediate
950 pages
27h 8m
English
In addition to the built-in library spatial there are two substantial contributed packages for analysing spatial data. The spatstat library is what you need for the statistical analysis of spatial point patterns (below left), while the spdep library is good for the spatial analysis of data from mapped regions (right).
With point patterns the things you will want to do include

whereas with maps you might
You need to take time to master the different formats of the data objects used by the two libraries. You will waste a lot of time if you try to use the functions in these libraries with your own, unreconstructed data files.
Here is the code for installing and reading about spatstat and spdep:
install.packages("spatstat") library(help=spatstat) library(spatstat) demo(spatstat) install.packages("spdep") library(help=spdep) library(spdep)
Read now
Unlock full access