如何通过r中的get_stamenmap获取USA的地图?

问题描述 投票:0回答:1

我不能有谷歌地图,所以我尝试使用雄蕊地图

我试过了:

library("ggmap")
us = get_stamenmap(place="USA")
ggmap(us)

但无论在哪里,它总是显示以下地图:

enter image description here

虽然我需要这张地图:

enter image description here

r ggmap
1个回答
1
投票
library("ggmap")

# lng/lat bounds of contiguous USA
bbox <- c(left = -125, bottom = 25, right = -65, top = 50)

us <- get_stamenmap(bbox = bbox, zoom = 5)
ggmap(us)
© www.soinside.com 2019 - 2024. All rights reserved.