Re: [R] Plot point patterns

From: Roger Bivand <>
Date: Wed, 18 Jun 2008 12:40:42 +0000 (UTC)

Vanesa Maria Santos Sanchez <vanesa.santossanchez <at>> writes:

> Hello!
> I want to plot a multitype point pattern called "new" in package
> spatstat. When I write plot(new) in the graphic window I can see a
> strech rectangle with a point inside, not the point pattern.If I
> write plot(new$x,new$y) the point pattern is plot ok.The problem
> is that I want do the density plots, quadrat count, etc and in
> these cases I canĀ“t write density(new$x,new$y), I must do it only
> whith the name of the point pattern.
> What is the problem?

You may prefer to move this to the R-sig-geo list, where there are more people in this topical area.

The first thing to do is to try to write an example that reproduces your problem with a data set provided with spatstat. It isn't easy to "look over your shoulder", so without an example, you may not get any good help. Make sure that the example is short and self-contained. If you need to use your own data, make the smallest possible subset available on a website. The indications are that your point pattern object (ppp) is malformed, because if it had been constructed correctly, you would see the points.


> Thanks.
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 18 Jun 2008 - 13:39:43 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 Thu 19 Jun 2008 - 16:30:43 GMT.

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

list of date sections of archive