也许是因为我对R比较新,我在http://www.gadm.org/上使用gadm-Mapfiles时遇到了问题.
我尝试绘制一个包含多个国家/地区的地图并将它们相互比较(使用不同的颜色).
这就是我的工作
library('sp')
##
load(url('http://biogeo.ucdavis.edu/data/gadm2/R/ARG_adm0.RData'))
# loads an Object "gadm" with shape of Argentinia
arg <- gadm # is there a more convenient way to do this in one line?
load(url('http://biogeo.ucdavis.edu/data/gadm2/R/CHL_adm0.RData'))
# loads an Object "gadm" with shape of Chile
chl <-gadm
load(url('http://biogeo.ucdavis.edu/data/gadm2/R/BOL_adm0.RData'))
# loads an Object "gadm" with shape of Bolivia
bol <- gadm
##
spplot(c(arg, chl, bol))
# output: unable to find an inherited method for function "spplot", for signature "list"
Run Code Online (Sandbox Code Playgroud)
这是我的问题:
先感谢您! …