Displaying 1 result from an estimated 1 matches for "20should".
Did you mean:
20could
2012 Aug 04
1
Getting unknown error trying to plot spatial data
...king with spatial data
(http://www.frankdavenport.com/blog/2012/6/19/notes-from-a-recent-spatial-r-class-i-gave.html)
and am running into an error that I can't figure out how to fix.
Disclaimer: I am very much an R n00b
Here is the r script I am running:
https://dl.dropbox.com/u/28231177/This%20Should%20Work.R
data: https://dl.dropbox.com/u/28231177/my_data.csv
shapefile: https://dl.dropbox.com/u/28231177/sfzipcodes.zip
I am getting two errors:
> pds <- fortify(sf_map)
*Using OBJECTID to define regions.*
> pds$OBJECTID <- as.integer(pds$OBJECTID)
*Error in `$<-.data.frame`(`*t...