29.01.2015 Views

Analysing spatial point patterns in R - CSIRO

Analysing spatial point patterns in R - CSIRO

Analysing spatial point patterns in R - CSIRO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

31.3 Distance methods and summary functions 191<br />

> data(amacr<strong>in</strong>e)<br />

> amacr<strong>in</strong>e<br />

> plot(Gcross(amacr<strong>in</strong>e, "on", "off"))<br />

Gcross(amacr<strong>in</strong>e, "on", "off")<br />

Gcross on, off(r)<br />

0.0 0.2 0.4 0.6 0.8<br />

km<br />

rs<br />

han<br />

theo<br />

0.00 0.01 0.02 0.03 0.04 0.05 0.06<br />

r (one unit = 662 microns)<br />

The <strong>in</strong>terpretation of the cross-type summary functions is similar, but not identical, to that<br />

of the orig<strong>in</strong>al functions F, G, K etc:<br />

if X j is a uniform Poisson process (CSR), then F j (r) = 1 − exp(−λ j πr 2 ).<br />

if X j is a uniform Poisson process (CSR) and is <strong>in</strong>dependent of X i , then G ij (r) = 1 −<br />

exp(−λ j πr 2 ).<br />

if X i and X j are <strong>in</strong>dependent, then K ij (r) = πr 2 , L ij (r) = r, g ij (r) = 1, G ij (r) = F ij (r)<br />

and J ij (r) = 1.<br />

Here ‘<strong>in</strong>dependent’ means that the two <strong>po<strong>in</strong>t</strong> processes are probabilistically <strong>in</strong>dependent.<br />

31.3.2 All pairs of types<br />

The command alltypes enables the user to compute the cross-type summary functions between<br />

all pairs of types simultaneously. For example, to compute G ij (r) for all i and j <strong>in</strong> the amacr<strong>in</strong>e<br />

cells data, we would use alltypes(amacr<strong>in</strong>e, "G"). The result is automatically displayed as<br />

an array of plot panels.<br />

> plot(alltypes(amacr<strong>in</strong>e, "G"))<br />

Copyright<strong>CSIRO</strong> 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!