<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>
&nbsp;<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 &lt;- try(library(shapefiles))&nbsp; <br>
<u>Error in library(maptools) : There is no package called
'shapefiles'<br>
</u>&gt; if (class(shp) != &quot;try-error&quot;) {<br>
+ ShapeDir &lt;- system.file(&quot;shapes&quot;,
package=&quot;maptools&quot;)[1]<br>
+ try1 &lt;- read.shapefile(paste(ShapeDir, &quot;shapes&quot;,
sep=&quot;/&quot;))<br>
+ shppolys &lt;- shape2poly(try1, 
as.character(try1$dbf$dbf$NEIGNO))<br>
+ plotpolys(shppolys)<br>
+ title(main=&quot;Polygons for Vermani from shapefiles
package&quot;)<br>
+ }<br>
&gt; <br>
&gt; try2 &lt;-
read.shape(system.file(&quot;shapes/Vermani.shp&quot;,<br>
+ package=&quot;maptools/man&quot;)[1])<br>
<u>Error: couldn't find function &quot;read.shape&quot;<br>
</u>&gt; mappolys &lt;- Map2poly(try2,
as.character(try2$att.data$NEIGNO))<br>
<u>Error: couldn't find function &quot;Map2poly&quot;<br>
</u>&gt; plotpolys(mappolys)<br>
<u>Error: couldn't find function &quot;plotpolys&quot;<br>
</u>&gt; title(main=&quot;Polygons for Vermani from maptools
package&quot;)<br>
Error in title(main = &quot;Polygons for Vermani from maptools
package&quot;) : <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plot.new has not been called
yet<br>
&gt; if (class(shp) != &quot;try-error&quot;) {<br>
+ plotpolys(shppolys)<br>
+ plotpolys(mappolys, add=TRUE, border=&quot;red&quot;,
lty=&quot;dotted&quot;)<br>
+ title(main=&quot;Polygons for Vermani overplotted from both
packages&quot;)<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&amp;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>&nbsp;
<i>IncrediMail</i> - <b>Email has finally evolved</b> -
</font><a href="http://www.incredimail.com/redir.asp?ad_id=309&amp;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>