maptype = "toner"
。颜色参数对花丝地图没有影响。您可能还想在绘图周围添加面板边框。如果是这样,请使用ggplot的theme_bw()
或theme(panel.border = element_rect(fill = NA, colour = "black"))
。library(ggmap)
mapImage <- get_map(location = c(lon = -110.8, lat = 34.7),
source = "stamen",
maptype = "toner",
# color = "bw",
zoom = 7)
ggmap(mapImage) + theme_bw()
maptype="toner"
的 get_stamenmap
。source="stamen"
的 get_map
说着带有南方轻柔的R音和不清晰的口齿,而 stamen 却听不懂。library(ggmap)
mapImage <- get_stamenmap(bbox = c(-114,32,-107,37),
source = "stamen",
maptype = "toner",
zoom = 7)
ggmap(mapImage) +theme_bw()
对我有用(在Linux中使用Rstudio,可能存在bug)
请注意bbox
作为location
和theme_bw()
的替代方案,正如Sandy所建议的。