是否有一个互动的输出设备,查看在研发的3D图形?互动、看在、有一个、图形

由网友(随性又洒脱)分享简介:目前,我正在生成3D图形在研发使用 persp -command。要改变视点人们必须设置参数 THETA 和披。为了评价图(上好的视点),人们必须尝试许多组合这些参数I'm currently generating 3D graphs in R using the persp-command. To change...

目前,我正在生成3D图形在研发使用 persp -command。要改变视点人们必须设置参数 THETA 。为了评价图(上好的视点),人们必须尝试许多组合这些参数

I'm currently generating 3D graphs in R using the persp-command. To change the viewpoint one has to set the parameters theta and phi. To evaluate (a good viewpoint on) the graph, one has to try lots of combinations for these parameters.

我在想,如果一个人可以定义一个互动的输出设备,允许使用鼠标旋转图形。这将是也很好,如果该设备给出了的当前值THETA

I was wondering if one can define an interactive output device that allows to rotate the graph using the mouse. It would be also nice if this device gives the current values for theta and phi.

有没有这样的设备/包装?

Is there such a device/package?

推荐答案

看到 RGL 包:的 http://cran.r-project.org/web/packages/rgl/index.html

这将不报告 THETA 值你所需要的,IIRC(虽然见@下面迪特尔的评论为解决这一点),但是你可以使用 rgl.snapshot() rgl.postscript()抢当前显示为位图或矢量图。该包装具有 persp3d()这非常类似于 persp()

It won't report the theta and phi values you need, IIRC (though see @Dieter's comment below for a solution to this), but you can use rgl.snapshot() or rgl.postscript() to grab the current display as a bitmap or vector image. The package has persp3d() which is very similar to persp().

阅读全文

相关推荐

最新文章