I currently have a list of counties that I am trying to map using library(ggmap)
and library(ggplot2)
in California. I have looked and cannot seem to find any tables that match a central latitude and longitude value for the given counties.
Is there an R package that will allow me to do this? Or even just table I can join onto with my current data table? Below is an example of what I want, except substitute zip for county.
library(zipcode)
data(zipcode)
head(zipcode)
zip city state latitude longitude
1 00210 Portsmouth NH 43.0059 -71.0132
2 00211 Portsmouth NH 43.0059 -71.0132
3 00212 Portsmouth NH 43.0059 -71.0132
4 00213 Portsmouth NH 43.0059 -71.0132
5 00214 Portsmouth NH 43.0059 -71.0132
6 00215 Portsmouth NH 43.0059 -71.0132