如何使用R RGL 3D图获得相等大小的轴
我正在用RGL包装绘制3D点图
par(mar = c(0, 0, 0, 0), cex.lab=1)
plot3d(cart$x,cart$y,cart$z,"X","Y","Z")
到目前为止, 。由于值,只有3个轴的大小不同。
我需要相同的尺寸轴。
这是当前输出。 所有3个轴都应转到10000,或者我设置的任何东西。
我该如何实现?
(xlim等我所理解的不起作用)
I am plotting a 3D point plot with the rgl-package with
par(mar = c(0, 0, 0, 0), cex.lab=1)
plot3d(cart$x,cart$y,cart$z,"X","Y","Z")
This work so far. Only the 3 axis are differently sized due to the values.
I would need identical sizes axes.
Here is the current output.
All 3 axes should go to 10000, or whatever I set.
How can I achieve this?
(xlim etc does not work as I understand)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您想要
expack3d(1,1,1)
(尽管没有给出可重复的示例),从
?expack3d
:I think you want
aspect3d(1,1,1)
(although no reproducible example was given)From
?aspect3d
:我终于通过在轴末端添加三个点来解决挑战。
也许不是最优雅的解决方案,但对我有用。
I finally solved the challenge by adding three points at the end of the axes.
Maybe not the most elegant solution, but it worked for me.