search for: map2spatialpolygon

Displaying 2 results from an estimated 2 matches for "map2spatialpolygon".

Did you mean: map2spatialpolygons
2007 Sep 17
1
map issues
...d. It is difficult to maintain and there are several alternatives, either by converting Map objects to sp class objects or polylist etc. objects" and so i gather we can either try to move things into sp class. A little search of this archive tells me that there is a function out there called map2SpatialPolygons that is of some help. So after reading the help on this i tried to convert the Map object to an sp object. But I keep failing. > ids <- as.character(districts$att.data$STATE) > ids[1:2] "A AND B" "A AND B" > temp <- map2SpatialPolygons(districts, IDs = ids) Erro...
2007 May 04
1
Help with map
I have just learned how to play with map, but something weird (or not) is happening. Suppose I want to draw a map of two countries (that have disconnected components), like Argentina and Brazil. If I command: library(maps) library(mapdata) map("worldHires", c("Argentina", "Brazil")) It works fine. However, if I want to _colour_ the interior: