Re: [R] maptools package

2010-11-11 Thread Jon Olav Skoien
On 11/10/2010 11:27 PM, Aleksandr Andreev wrote: OK, that loads the shape file. But now when I do: submap- subset(spb, as.character(spb$Name) == 'Vasilevsky Island') the submap still has the whole city, not just the subset. Is there now a different way of extracting a subset from a map? I

[R] maptools package

2010-11-10 Thread Aleksandr Andreev
A few years back, I wrote some code to plot maps with the maptools package. Now I am trying to reproduce my results, only to find out that maptools has been updated and my code no longer works. I've been able to fix the first part of it by forcing spb -

Re: [R] maptools package

2010-11-10 Thread Jonathan P Daily
, Firefly From: Aleksandr Andreev aleksandr.andr...@gmail.com To: r-help@r-project.org Date: 11/10/2010 01:10 PM Subject: [R] maptools package Sent by: r-help-boun...@r-project.org A few years back, I wrote some code to plot maps with the maptools package. Now I am trying to reproduce my results

Re: [R] maptools package

2010-11-10 Thread Phil Spector
Aleksandr - What happens when you use library(maptools) spb = readShapePoly('/home/sasha/Documents/maps/spb.shp') - Phil Spector Statistical Computing Facility Department

Re: [R] maptools package

2010-11-10 Thread Aleksandr Andreev
OK, that loads the shape file. But now when I do: submap - subset(spb, as.character(spb$Name) == 'Vasilevsky Island') the submap still has the whole city, not just the subset. Is there now a different way of extracting a subset from a map? A 2010/11/10 Phil Spector spec...@stat.berkeley.edu: