Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
rgl我使用包在 R 中构建直方图。
rgl
library(rgl) rgl.bg(col="#cccccc") x<-rnorm(2500) y<-rnorm(2500) hist3d(x, y, alpha=0.8, nclass=10, scale=30)
如何在绘图上添加带有标签的轴?
更新
解决方案:
axes3d(c('x','y','z')) title3d('','','xlab','ylab','zlab')
源代码hist3d位于demo(hist3d)
hist3d
demo(hist3d)
添加:
axes3d()
hist3d如果有人试图运行上面的代码:它不是独立的,你需要binplot从 ?hist3d 复制代码。
binplot