R语言,rayshader包,height_shade计算地形颜色图

无障碍色卡做填色
# Tue Oct 06 23:46:54 2020 -

# 字符编码:UTF-8
# R 版本:R x64 4.0.2 for window 10
# cgh163email@163.com
#个人笔记不负责任
# —— 拎了个梨🍐
rm(list=ls());gc()
# height_shade计算地形颜色图
require(rayshader)

montereybay %>%
  height_shade() %>% #   默认映射颜色
  plot_map()


montereybay %>%
  height_shade() %>%
  add_shadow(ray_shade(montereybay,zscale=50),0.3) %>% #  高程
  plot_map()

# 调色板:
topo.colors(256)
montereybay %>%
  height_shade(texture = topo.colors(256)) %>%
  add_shadow(ray_shade(montereybay,zscale=50),0.3) %>%
  plot_map()

# 使用无障碍色卡:
require(colorBlindness)
Blue2DarkRed18Steps

montereybay %>%
  height_shade(texture = Blue2DarkRed18Steps) %>%
  add_shadow(ray_shade(montereybay,zscale=50),0.3) %>%
  plot_map()




©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容