Convert map data to data frame using fortify {ggplot2} for spatial objects in R
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use to be able to run this script without any problem, but now the fortify {ggplot2} command gives me an error message. Any hint of what might be the problem would be great! I used the fortify command to be able to geom_map the shapefile using ggplot2. Below is my script and link for downloading the data. ####################################################### ####################################################### rm(list = ls(all = TRUE))#clear workspace getwd() #upload packages library(maps) library(mapdata) library(gridExtra) library