这种非常简单的绘图在拖动,旋转等时会卡住.它并不慢,但是扩展正在改变,因此很难跟踪数据.这是因为轴标签在交互过程中重新定位.但是,如果我设置axis = FALSE,为什么呢?它还在四处跳跃......有什么想法吗?
library(rgl)
# has glitches during rotation, etc.
xyz = rbind(
c(696640.9, 211180.6, 1125.691),
c(696640.9, 211180.5, 1125.696),
c(696640.9, 211180.1, 1125.725),
c(696641.1, 211179.8, 1125.813)
)
plot3d(xyz, type="p", size=10)
# runs smoothly
xyz = rbind(
c(6, 2, 1),
c(9, 5, 6),
c(4, 1, 5),
c(1, 8, 3)
)
plot3d(xyz, type="p", size=10)
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个'错误'?非常感谢.
此外,由于跳跃,数据本身的定位似乎已被破坏.例如,绿线以数据方式接触红线.但是对于所有视角都不一致.
编辑
使用的建议答案scale()是解决问题,plot3d()但不是为我解决问题.我添加更多的数据的情节points3d(),segments3d()以及abcline3d()其随后没有得到很好的安置.即使我scale()也使用这些函数添加的数据.