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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

216 L<strong>in</strong>e segment data<br />

35 L<strong>in</strong>e segment data<br />

spatstat also has some facilities for handl<strong>in</strong>g <strong>spatial</strong> <strong>patterns</strong> of l<strong>in</strong>e segments.<br />

For example, the copper dataset <strong>in</strong> spatstat conta<strong>in</strong>s a dataset copper$L<strong>in</strong>es that records<br />

the locations of geological faults <strong>in</strong> a survey region.<br />

> data(copper)<br />

> L L plot(L)<br />

L<br />

A <strong>spatial</strong> pattern of l<strong>in</strong>e segments is represented by an object of class "psp". It consists of<br />

a list of l<strong>in</strong>e segments (given by the coord<strong>in</strong>ates of their two end<strong>po<strong>in</strong>t</strong>s), and a w<strong>in</strong>dow <strong>in</strong> which<br />

the l<strong>in</strong>e segments were observed. The l<strong>in</strong>e segments may also carry marks.<br />

Objects of class "psp" can be created by the function psp or obta<strong>in</strong>ed by convert<strong>in</strong>g other<br />

data us<strong>in</strong>g the function as.psp.<br />

Capabilities available for this class <strong>in</strong>clude:<br />

is.psp<br />

check whether an object is a psp<br />

[.psp<br />

subset operator (also performs clipp<strong>in</strong>g)<br />

marks.psp extract marks<br />

marks

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

Saved successfully!

Ooh no, something went wrong!