I试图在R中使用这段代码,并使用包RgoogleMaps
R版本: 2.14.2
RgoogleMaps版本: 1.1.9.15
我需要使用这些旧版本,下面是代码(适用于最新版本)
PlotOnStaticMap(Map,lon=x,lat=y, FUN = points, pch=16, col=Colors)但是在这些旧版本中,我发现了以下错误信息:
List of 8
$ lat.center: num 45.6
$ lon.center: num 12.4
$ zoom : num 9
$ myTile : 'nativeRaster' int [1:640, 1:640] -1906967 -1906967 -1906967 -1446673 -1183245 -1183245 -1183245 -1183245 -1445905 -2235674 ...
..- attr(*, "channels")= int 4
$ BBOX :List of 2
..$ ll: num [1, 1:2] 45 11.5
.. ..- attr(*, "dimnames")=List of 2
.. .. ..$ : chr "Y"
.. .. ..$ : chr [1:2] "lat" "lon"
..$ ur: num [1, 1:2] 46.2 13.3
.. ..- attr(*, "dimnames")=List of 2
.. .. ..$ : chr "Y"
.. .. ..$ : chr [1:2] "lat" "lon"
$ url : chr "google"
$ size : int [1:2] 640 640
$ SCALE : num 1
NULL
[1] -148.7783 210.1525
[1] -131.7210 127.5206
Errore in plot.xy(xy.coords(x, y), type = type, ...) :
plot.new hasn't been called yet有什么问题吗?
发布于 2014-12-17 15:13:39
错误在Map中。它是用最新版本的软件包下载的,而最老的版本没有识别它
https://stackoverflow.com/questions/27489304
复制相似问题