Dear colleges,

     I was trying to use an object SpatialPolygonsDataFrame in shapefile 
format with the package spatstat,
I used Baddeley's material "Handling in the shapefiles package of 
spatstat", but I could not plot the owin created, I maked for this purpose:

require (maptools)
require (spatstat)
x <- readShapeSpatial ("mtaremanne92.shp")
class (x)
[1] "SpatialPolygonsDataFrame"
attr (, "package")
[1] "sp"
cregions <- slot (x, "polygons")
cregions <- lapply (cregions, function (x) {SpatialPolygons (list (x))})
cwindows <- lapply (cregions, as.owin)
Checking 1 ... 1 polygons.
done.
Checking ... 3 polygons 1, 2, 3.
done.
Checking for cross-intersection polygons Between 3 ... 1, 2.
done.
plot (cwindows)
Error xy.coords (x, y, xlabel, ylabel, log):
    'x' is a list, but does not have components 'x' and 'y'

Anyone who has used shapefile in spatstat can give me a help,
Thanks,


*Alexandre dos Santos
*Engenheiro Florestal, MSc.
Universidade Federal de Lavras
Departamento de Entomologia
Laboratório de Entomologia Florestal
Caixa Postal 3037
37200-000 - Lavras/MG
Fone: +55 (35) 3829-5122



	[[alternative HTML version deleted]]

