获得美国郡的中心坐标(经度,纬度)

时间:2016-03-07 22:39:55

标签: r ggmap

我目前在加利福尼亚州使用library(ggmap)library(ggplot2)设置了我要映射的县列表。我看起来似乎并没有找到任何匹配给定县的中心纬度和经度值的表格。

是否有R包可以让我这样做?或者甚至只是我可以加入我当前的数据表? 下面是我想要的一个例子,除了县的替代拉链。

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

0 个答案:

没有答案