将sp对象与ggmap组合

时间:2019-01-29 22:04:35

标签: r ggplot2 ggmap sp rgdal

我已经使用geo <- readOGR阅读了sp对象。当我使用plot(geo)时,我得到以下图像:

enter image description here

这是我从丹麦的公共机构下载的一些数据。

如何将上述图表中的“州”的边界与ggmap波纹管下的图表结合起来:

library(ggplot)
library(maps)
library(ggmap)


ggplot() + borders(regions = "Denmark", colour = "gray50", fill = "gray50") 

我想要实现的是一个绘图,其中每个多边形根据某种计算在色标上具有一种颜色。

0 个答案:

没有答案