此问题出现了previously,正如此处所建议的那样,它是addressed。但它似乎只是部分解决了。
首先,这是有效的代码,大致在白宫的位置显示一个点:
require(ggmap)
gc = geocode('the white house')
qmap(location = "the white house", maptype = "roadmap", zoom = 3) +
geom_point(aes(x = lon, y = lat), data = gc, color="red", size = 3)
但是,如果我将maptype
更改为"toner"
,我更喜欢它的简单性和国家边界的清晰度,白宫向北移动到加拿大:
qmap(location = "the white house", maptype = "toner", zoom = 3) +
geom_point(aes(x = lon, y = lat), data = gc, color="red", size = 3)
我该如何解决这个问题?