Re: [R] Generating maps in R (Roger Bivand)

2008-04-01 Thread Aleksandr Andreev
Roger Bivand Roger.Bivand at nhh.no writes: This was exactly why I emphasised care. One way to try to do this is to extract the FS data slot: FSd - as(FS, data.frame) and then merge() FSd and agg2, using - untried - something like: FS1d - merge(FSd, agg2, by=row.names, all=TRUE) It worked

Re: [R] Generating maps in R

2008-03-31 Thread Roger Bivand
Aleksandr Andreev aleksandr.andreev at duke.edu writes: Roger Bivand Roger.Bivand at nhh.no writes: Merge using: FS1 - spCbind(FS, agg2) This call fails, because: Error in spCbind(FS, agg2) : different numbers of rows This was exactly why I emphasised care. One way to try to do this

Re: [R] Generating maps in R

2008-03-30 Thread Roger Bivand
Aleksandr Andreev aleksandr.andreev at duke.edu writes: Greetings! I am trying plot some data on a map in R. Here's the scenario. I have a variable called probworkinghealthy which contains a predicted probability of employment for every individual in my sample (about 100,000

Re: [R] Generating maps in R

2008-03-30 Thread Aleksandr Andreev
Roger Bivand Roger.Bivand at nhh.no writes: Merge using: FS1 - spCbind(FS, agg2) This call fails, because: Error in spCbind(FS, agg2) : different numbers of rows The reason is because I have data in a001ter for 79 Federal Subjects, but russia.shp contains 193 labeled objects (93 Federal

[R] Generating maps in R

2008-03-29 Thread Aleksandr Andreev
Greetings! I am trying plot some data on a map in R. Here's the scenario. I have a variable called probworkinghealthy which contains a predicted probability of employment for every individual in my sample (about 100,000 observations). I have another variable, called a001ter, which contains the