I have a list of counties that I would like to color in on a map, but the only way I've found to do it is with lat/long. This is not as accurate as I want to make sure all the counties are represented and not just a dot.
Is it possible to color in the county borders?
Example:
dput:
db_loc <- structure(list(X = 1:10, fips = c(5001L, 5001L, 5001L, 5001L,
5001L, 5001L, 5001L, 5001L, 5001L, 5001L), zip = c(72003L, 72026L,
72038L, 72042L, 72048L, 72055L, 72073L, 72140L, 72160L, 72166L
), city = c("Almyra", "Casscoe", "Crocketts Bluff", "De Witt",
"Ethel", "Gillett", "Humphrey", "Saint Charles", "Stuttgart",
"Tichnor"), latitude = c(34.403216, 34.505369, 34.438327, 34.283347,
34.28965, 34.109348, 34.396301, 34.383661, 34.479852, 34.061917
), longitude = c(-91.40953, -91.30213, -91.26907, -91.32515,
-91.13632, -91.36875, -91.66201, -91.15428, -91.53854, -91.24828
)), .Names = c("X", "fips", "zip", "city", "latitude", "longitude"
), row.names = c(NA, 10L), class = "data.frame")
Map Data:
library(ggmap)
map <- get_map(location='arkansas', zoom=8, maptype = "terrain",
source='google',color='color')
ggmap(map) + geom_point(
aes(x=longitude, y=latitude, show_guide = TRUE),
data=db_loc, alpha=.8, na.rm = T)
Output:



countiesin your question, but your data seems to differentiate at the zip level... - Serban Tanasa