直接开始,先下载地图:
library(tidyverse)# 下载形状文件,注意改destfile的路径
download.file("http://thematicmapping.org/downloads/TM_WORLD_BORDERS_SIMPL-0.3.zip" ,
destfile="E:/code/R_code/ggplot2/world_shape_file.zip")# 这个时候去看一下路径里是不是有了world_shape_file.zip这个文件