R语言geoviz包,slippy_overlay#使用“sliplymath”包从“Mapbox”或“Stamen”地图创建覆盖图像
# Tue Mar 16 13:57:09 2021 -
# 字符编码:UTF-8
# R 版本:R x64 4.0.4 for window 10
# cgh163email@163.com
# 个人笔记不负责任,拎了个梨🍐
.rs.restartR()
require(geoviz)
rm(list = ls());gc()
?slippy_overlay#使用“sliplymath”包从“Mapbox”或“Stamen”地图创建覆盖图像
overlay_image <- slippy_overlay(example_raster(),
image_source = "stamen",
image_type = "watercolor",
max_tiles = 2)
require(terra)
map.grd <- rast(overlay_image)
plot(map.grd)
dev.copy(png, "slippy_overlay#使用“sliplymath”包从“Mapbox”或“Stamen”地图创建覆盖图像.png");dev.off()