image.png
填充为白色,边界为绿色
ggplot()+
geom_polygon(data=worldMap,aes(x=long,y=lat,group=group),...image.png
为不同的国家地区填充不同的颜色
worldMap$region<-ifelse(worldMap$region=="Taiwan","China",worldMap$region)...ggplot()+
geom_polygon(data=worldMap,
aes(x=long,y=lat,group=group,fill=region))+...image.png
另外一种形式,以下代码来自网络,原文地址
https://stackoverflow.com/questions/54964279/how-to-create-a-world-street-map-with-r...aes(label = id,
x = continent_long,
y = continent_lat,