search for: sf_map

Displaying 1 result from an estimated 1 matches for "sf_map".

Did you mean: tf_map
2012 Aug 04
1
Getting unknown error trying to plot spatial data
...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* > > > ## Make the map > > p1 <- ggplot(my_data, aes(map_id = zip)...