Analysing spatial point patterns in R - CSIRO
Analysing spatial point patterns in R - CSIRO
Analysing spatial point patterns in R - CSIRO
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
72 Tessellations<br />
pixel<br />
rectangular<br />
list<br />
a b c d e f g h i j k<br />
All three types of tessellation can be created by the command tess.<br />
To create a rectangular tessellation:<br />
> tess(xgrid = xg, ygrid = yg)<br />
where xg and yg are vectors of coord<strong>in</strong>ates of vertical and horizontal l<strong>in</strong>es determ<strong>in</strong><strong>in</strong>g a<br />
grid of rectangles. Alternatively, if you want to divide a rectangular w<strong>in</strong>dow W <strong>in</strong>to rectangles<br />
of equal size, you can type<br />
> quadrats(W, nx, ny)<br />
wherenx,ny are the numbers of rectangles <strong>in</strong> the x and y directions, respectively. A common<br />
use of this command is to create quadrats for a quadrat-count<strong>in</strong>g method.<br />
To create a tessellation from a list of w<strong>in</strong>dows,<br />
> tess(tiles = z)<br />
wherezis a list of objects of class "ow<strong>in</strong>". The w<strong>in</strong>dows should not be overlapp<strong>in</strong>g; currently<br />
spatstat does not check this. This command is commonly used when the study region is divided<br />
<strong>in</strong>to adm<strong>in</strong>istrative regions (states, départements, postcodes, counties) and the boundaries of<br />
each sub-region are provided by GIS data files.<br />
To create a tessellation from a pixel image,<br />
> tess(image = Z)<br />
where Z is a pixel image with factor values. Each level of the factor represents a different tile<br />
of the tessellation. The pixels that have a particular value of the factor constitute a tile. This<br />
command is often used to separate the landcover types <strong>in</strong> a landcover image (a pixel image <strong>in</strong><br />
which each pixel is labelled by the type of vegetation or land use at that location) <strong>in</strong>to different<br />
regions.<br />
The command as.tess can also be used to convert other types of data to a tessellation.<br />
11.2 Computed tessellations<br />
There are two commands which compute a tessellation from a <strong>po<strong>in</strong>t</strong> pattern.<br />
The command dirichlet(X) computes the Dirichlet tessellation or Voronoi tessellation of<br />
the <strong>po<strong>in</strong>t</strong> pattern X. The tile associated with a given <strong>po<strong>in</strong>t</strong> of the pattern X is the region of space<br />
which is closer to that <strong>po<strong>in</strong>t</strong> than to any other <strong>po<strong>in</strong>t</strong> of X. The Dirichlet tiles are polygons. The<br />
command dirichlet(X) computes these polygons and <strong>in</strong>tersects them with the w<strong>in</strong>dow of X.<br />
> X plot(dirichlet(X))<br />
Copyright<strong>CSIRO</strong> 2010