使用 ggplot / ggmap 绘制到 shapefile 区域

Plotting to shapefile region with ggplot / ggmap

我有一个显示英格兰地图的 shapefile,上面标有区域:

England <- readOGR(dsn = "...")

England.fort <- fortify(England, region='regionID') 
England.fort <-England.fort[order(England.fort$order), ] 

给我 England.fort:

England.fort
>long
>lat
>order
>hole
>piece
>id      #contains the region IDs
>group   #contains the region IDs
>Total   #I want to plot this

来自此处的形状文件:https://geoportal.statistics.gov.uk/Docs/Boundaries/Local_authority_district_(GB)_2014_Boundaries_(Generalised_Clipped).zip

我想绘制区域以显示每个区域的总人数:

p <- ggplot(data=England.fort, aes(x=long, y=lat, group=group, fill="Total")) + 
     geom_polygon(colour='black', fill='white') + theme_bw()

但它给了我一张空白的英格兰地图,所有区域都是白色的。

ggplot(data=England.fort, aes(x=long, y=lat, group=group, Fill=Total)) + 
          geom_polygon() +
          theme_bw()

成功了。谢谢