Skip to content
Prev 1351 / 29559 Next

(no subject)

On Thu, 28 Sep 2006, pir2.jv wrote:

            
I think that this is the problem, and that you have an alternative local 
copy of plot that disturbs the method dispatch.

If you say ls(), do the names of any of the objects begin with plot?
This is where it is going wrong. If you do:

is(xx)

you should see:

[1] "SpatialPolygonsDataFrame" "SpatialPolygons"         
[3] "Spatial"  

and method dispatch should choose plot.SpatialPolygons - can you try

plot.SpatialPolygons(xx, axes=TRUE)

directly. I'm fairly certain that the method dispatch of plot is getting 
interfered with, since the class of xx is OK.

Roger