Skip to content

looking for 3D plotting with real-time rotation

2 messages · Wittner, Ben, John Fox

#
I would like to plot points in 3D and then be able to rotate the plot in real
time in order to understand the distribution of the points using the visual
parallax that results from the rotation.

The R-package scatterplot3d will plot in 3D, but I've not found a way to rotate
the results in real time. (It also does not seem to get the projection from 3D
to a viewing plane right.)

The R-package rgl seems to support real-time 3D rendering using OpenGL, but it
appears to be lower-level than I'm looking for (i.e., it provide graphics
primitives, but not a plotting function that would take care of axis labels,
etc.)

Any help would be appreciated.

Thanks.

-Ben
#
Dear Ben,

The scatter3d() function in the Rcmdr package uses rgl to plot
rotatable point clouds and regression surfaces. The function is usable
with or without the Rcmdr GUI. You'll find an illustrative plot at
<http://socserv.socsci.mcmaster.ca/jfox/Courses/S-course/index.html>.

I hope this helps,
 John

On Tue, 1 Mar 2005 16:48:47 -0500
"Wittner, Ben" <Wittner.Ben at mgh.harvard.edu> wrote:
--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/