Re: [R] [R-sig-Geo] spatstat questions

From: Roger Bivand <>
Date: Sun, 9 Dec 2007 19:17:04 +0100 (CET)

On Sun, 9 Dec 2007, Milton Cezar Ribeiro wrote:

> Hi all,
> Is there a mailing list for spatstat R package?

The website is (seems to be down for me, but that's probably me); the maintainers also read this list.

> Another question: Can I find some ebooks on Spatial Pattern Analysis to
> be downloaded?
> Finally, how can I use a shapefile as "mask" on spatstat? I read the
> polygon using maptools::read.shape function and now I would like to use
> this shape as mask to define the boundary of my point pattern data.

Don't use read.shape(), it returns a raw object that is difficult to handle. An example with readShapePoly:

xx <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1]) .spatstat_check <- FALSE
NC <- as(as(xx, "SpatialPolygons"), "owin") plot(NC)
pts <- runifpoint(1000, NC)
plot(pts, pch=16, cex=0.5, add=TRUE)

The .spatstat_check is to turn off topology checking - please use only when necessary. In general the internal structures expect polygons not to touch or intersect, but the North Carolina counties do touch, so I have turned off the check.

There are more notes on Dylan Beaudette's site at:

Hope this helps,


> Kind regards
> Miltinho
> Brazil.

Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 09 Dec 2007 - 18:23:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 09 Dec 2007 - 18:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.