Displaying 1 result from an estimated 1 matches for "sfzipcod".
Did you mean:
sfzipcodes
2012 Aug 04
1
Getting unknown error trying to plot spatial data
...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`(`*tmp*`, "OBJECTID", value = integer(0)) :
replacement has 0 rows, data has 16249*
>
>
> ## Mak...