Supplement 1. R code for tests of spatial pattern.

<h2>File List</h2><div> <p><a href="baddeley.pdf">baddeley.pdf</a> (md5: 1d735f3218c0569e832b8d54d9158663) </p> <p> <a href="baddeley.Rnw">baddeley.Rnw</a> (md5: d1fb81b9cc5e1fcde730710808635964)</p> <p> <a href="baddeley.R">baddeley.R</a> (md5: 519b4bdc17eebbf2a3d433b017000a51)</p> </div><h2>Description</h2><div> <p>baddeley.pdf - <b>Readable document</b> showing <i>R</i> command input, resulting numerical output and figures, surrounded by explanatory text, as a formatted document. Generated automatically from baddeley.Rnw using the <i>R</i> command Sweave. </p> <p> baddeley.Rnw - <b>Original input file.</b> A text file containing a mixture of computer code (in the <i>R</i> language) and explanatory text (in LaTeX format). This file can be processed automatically by the <i>R</i> command Sweave to generate all figures and results obtained in the paper. </p> <p> baddeley.R - <b><i>R</i> script.</b> Text file containing <i>R</i> code only, to generate all figures and results in the paper. Extracted from baddeley.Rnw automatically using the <i>R</i> command Stangle. </p> </div>