是否有一个互动的输出设备,查看在研发的3D图形? [英] Is there an interactive output device to view 3D graphs in R?

查看:176
本文介绍了是否有一个互动的输出设备,查看在研发的3D图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在生成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().

这篇关于是否有一个互动的输出设备,查看在研发的3D图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆