0
我想用我自己的边界框边界制作一个映射。但到目前为止,我每次都失败了。r中的ggmap - 自己的边界框
首先我试着用功能get_map
来做。 Here我发现我需要指定source = "osm"
。我的代码已经
my_map<-get_map(location=c(-15, 30, 15, 85), source="osm")
,但我比我尝试使用get_openstreetmap
收到错误
Error: map grabbing failed - see details in ?get_openstreetmap.
In addition: Warning message:
In download.file(url, destfile = destfile, quiet = !messaging, mode = "wb") :
cannot open: HTTP status was '0 (nil)'`
。我的代码是
get_openstreetmap(bbox = c(left = -15.00000, bottom = 29.38048, right = 15.00000,
top=85.00000, scale=606250))
,但我又得到了一个错误
Error: bounding box improperly specified. see ?get_openstreetmap
虽然我读都?get_openstreetmap
和?get_map
我不知道我做错了。谁能帮我?请考虑在获得地图后,我需要在其上添加一些points
,所以只需url
对我来说是不够的。
Thx很多!