一个震撼的交互型3D可视化R包 - rayshader 作者:张虎 协和 编辑:陈同 生信宝典 ? 虽然3D的plot见得比较多了,但是看见这样的R包,我的心还是砰了一下,这个简直不能再好看了! # 安装rayshader包 install.packages("remote") remotes::install_github("tylermorganwall/rayshader") library (rayshader) library(ggplot2) # 查看数据格式 head(diamonds) # 绘制二维密度图 gg = ggplot(diamonds, aes(x, depth)) 点击链接 https://github.com/tylermorganwall/rayshader!该网站包含所有`rayhader`功能的文档和示例,可以在`Github`页面上找到实际的存储库。
网址:R-wzRfun[2] R-rayshader包 R-rayshader包作为R语言中为数不多的可将ggplot2对象转变成3D可视化对象的第三方工具,其绘制的可视化图表效果拉满,该库通常是将高程数据进行 网址:R-rayshader包[3] R-rgl包 要想使绘制的3D可视化结果可以交互展示,R-rgl包可实现该效果,但该包的因其特有的语法结构,导致其适用性方面不如R-plot3D包,导致学习成本较高 type = c("on", "top", "bottom"), col.regions = colr(101), drape = TRUE) 样例二 R-rayshader [3] R-rayshader包: https://www.rayshader.com/。 [6] R-rayshader包更多样例: https://www.rayshader.com/。
方法之前的类似,可以参考: R 语言高级玩法:RayShader 长白山 dem 栅格影像立体渲染 R 语言高级做图玩法:rayshader 渲染立体人口密度图 最后成果上图 读取省界文件,加载dem NULL,#list(FUN = 'median'), #设置边缘分布 par.settings=RdBuTheme,pretty = TRUE) 数据转化成Matrix,进行rayshader buffer = 1000), nrow = ncol(hlj_corp), ncol = nrow(hlj_corp)) #We use another one of rayshader's
ggplot2 cowplot/patchwork/ggplotify(拼图) pheatmap/complexheatmap https://github.com/tylermorganwall/rayshader
地图+高度图,由rayshader渲染 这里,我想到了两个问题,纹理采集和海量数据的调度。我们采集的纹理都是基于某个时段和光照环境下的结果,从这个角度,纹理不是属性,而是结果。