Skip to content

Help with Voronoi Tesselation

1 message · Adrian Baddeley

#
Josef Fruehwald <jofrhwld at gmail.com> writes:
[ ...]
This is a query about the 'spatstat' package. 

You want the software to clip the Dirichlet polygons to the USA boundary. Polygon computations in spatstat currently depend on the package 'gpclib'. This package has a restrictive licence, so it is turned off by default, and you get a pixel image instead.

To enable polygon computations, type
           spatstat.options(gpclib=TRUE)
Please type licence.polygons() for more information about the licence conditions. 

If the licence conditions do not allow you to use gpclib, then I suggest you replace the USA boundary by a rectangle. Then dirichlet() will give a list of polygons, which you can extract and deal with yourself.

Adrian Baddeley

.............................. Full message ..............................................
[...]