Delete comment from: R for Public Health
To fix the `Error in seq.default ...` error change the following:
mydata<-data.frame(NAME_1=states.shp$NAME_1, id=1:num.states, prevalence=rnorm(num.states, 55, 20))
to
mydata<-data.frame(NAME_1=states.shp$NAME_1, id=states.shp$ID_1, prevalence=rnorm(num.states, 55, 20))
I puzzled how could he execute the original code :S
Nov 2, 2015, 6:53:10 AM
Posted to Mapping with ggplot: Create a nice choropleth map in R