On Sat, 23 Jul 2011, Axel Urbiz wrote:
Hi,
I'd like to read a shapefile into a Map object. This is exactly what
read.shape{maptools} is suppoed to do, according to the documentation I
found in the link below.
Do search the archives properly; the second hit on googling
"list:R-sig-geo read.shape" is relevant. Summarize to the list when you've
resolved your problem. In addition, R is case specific, so an S3 Map
object is not an S3 map object.
Your previous mail refers to a function in the maps package, which does
things that may be supported elsewhere. The only function that seems to
convert SpatialPolygonsDataFrame to a list like the map class is
fortify.SpatialPolygonsDataFrame() in ggplot2, but I don't know if this
does what you need. To be honest, you havent't explained what you want to
do with smooth.map that you cannot do with sp objects - please do read the
available documentation before cross-posting (first post).
Roger
However, this doesn't seem to work
library(maptools)x <- read.shape(system.file("shapes/sids.shp",
package="maptools")[1])Error: could not find function "read.shape"
I haven't found this function on the documentation from the latest
release of the package, so I assume is no longer supported. Is there
an alternative way of doing this?
http://rss.acs.unt.edu/Rdoc/library/maptools/html/read.shape.html
Thanks,
Axel.
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
r-sig-...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: roger.biv...@nhh.no
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.