<html>
<body>
Have you install the shapefiles library on your computer ??<br><br>
<br>
At 12:56 23/10/2003, Orlando Zacarias wrote:<br><br>
<blockquote type=cite class=cite cite><img src="cid:5.2.1.1.0.20031023132520.01490b38@biomserv.univ-lyon1.fr.4" width=240 height=70 alt="a77632.gif"><br>
<br>
Hi once again,<br>
Now i have been trying to run the R changed example from Maptools package
manual, and errors occur underlined bellow. It is really
troublesome....<br>
Please assist,<br>
Orlando.<br>
---------------------------------------------------<br>
shp <- try(library(shapefiles)) <br>
<u>Error in library(maptools) : There is no package called
'shapefiles'<br>
</u>> if (class(shp) != "try-error") {<br>
+ ShapeDir <- system.file("shapes",
package="maptools")[1]<br>
+ try1 <- read.shapefile(paste(ShapeDir, "shapes",
sep="/"))<br>
+ shppolys <- shape2poly(try1,
as.character(try1$dbf$dbf$NEIGNO))<br>
+ plotpolys(shppolys)<br>
+ title(main="Polygons for Vermani from shapefiles
package")<br>
+ }<br>
> <br>
> try2 <-
read.shape(system.file("shapes/Vermani.shp",<br>
+ package="maptools/man")[1])<br>
<u>Error: couldn't find function "read.shape"<br>
</u>> mappolys <- Map2poly(try2,
as.character(try2$att.data$NEIGNO))<br>
<u>Error: couldn't find function "Map2poly"<br>
</u>> plotpolys(mappolys)<br>
<u>Error: couldn't find function "plotpolys"<br>
</u>> title(main="Polygons for Vermani from maptools
package")<br>
Error in title(main = "Polygons for Vermani from maptools
package") : <br>
plot.new has not been called
yet<br>
> if (class(shp) != "try-error") {<br>
+ plotpolys(shppolys)<br>
+ plotpolys(mappolys, add=TRUE, border="red",
lty="dotted")<br>
+ title(main="Polygons for Vermani overplotted from both
packages")<br>
+ }<br>
------------------------------------------------------<br><br>
<div align="center"><img src="cid:5.2.1.1.0.20031023132520.01490b38@biomserv.univ-lyon1.fr.5" width=187 height=33 alt="a77678.gif"><font size=2><br>
</div>
____________________________________________________<br>
</font><a href="http://www.incredimail.com/redir.asp?ad_id=309&lang=9"><img src="cid:5.2.1.1.0.20031023132520.01490b38@biomserv.univ-lyon1.fr.6" width=20 height=15 alt="a77683.gif"></a><font face="Comic Sans MS" size=2>
<i>IncrediMail</i> - <b>Email has finally evolved</b> -
</font><a href="http://www.incredimail.com/redir.asp?ad_id=309&lang=9"><font face="Times New Roman, Times"><b><u>Click
Here</a></u></b></font> <br><br>
_______________________________________________<br>
R-sig-Geo mailing list<br>
R-sig-Geo@stat.math.ethz.ch<br>
<a href="https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-geo" eudora="autourl">https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-geo</a></blockquote></body>
</html>