Published online by Cambridge University Press: 05 November 2012
Overview
R is a software package for statistical computation and graphics. It is free and open-source and very flexible. It implements many modern statistical methods with good graphical support. The core of R is an interpreted computer language which allows branching and looping as well as modular programming using functions. It can be downloaded for different operating systems from the main website http://www.r-project.org/, which also contains links to manuals and documentation. For example, a relatively concise introduction to R is available at http://cran.r-project.org/doc/manuals/R-intro.pdf.
The R language is enhanced by numerous libraries. For the purposes of spatial statistics, the spatstat library has been developed. It supports the following:
Creation, manipulation, and plotting of point patterns
Exploratory data analysis, including intensity maps, empty space functions, nearest-neighbor distance functions, and K, L, and J functions
Model fitting
All figures with point patterns in this book were created using the powerful commands of the spatstat library. To use it, it needs to be loaded after starting R by typing library(spatstat). A demo can be run by demo(spatstat), while typing help(spatstat) provides a help page. An introduction to spatstat is given in Baddeley & Turner (2005), and further documentation is available at www.spatstat.org.
R is equipped with all standard data types, such as scalars, vectors, arrays, and lists. Additional spatstat data types are point patterns and windows. A point pattern records the locations of the points observed in a certain region, and a window is a region in a two-dimensional space representing the “study area.”
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.