Re: [R] [Rd] Display an Image on a Plane

From: Barry Rowlingson <>
Date: Fri 20 Jan 2006 - 21:55:22 EST

[more an R-help than R-dev thing]

Ben Bolker wrote:
> Labbe, Vincent (AEREX <Vincent.Labbe.AEREX <at>> writes:

>>I am new to R and I would like to display an image on a plane in a 3D plot,
>>i.e. I would like to be able to specify a theta and a phi parameters like in
>>the function persp to display a 2D image on an inclined plane.

> can't think of an easy way to do this: what do you mean by "image"
> exactly? A bitmapped image from a file? Or something like the
> output of image()? If the latter, you may be able to cobble together something
> using the trans3d() function (i.e., manually recreating an image()
> by drawing colored squares, but transforming each of the to the 3D
> perspective). If the former, you might be able to do something with
> the pixmap package ...

  I think once you get into doing fancy visualisations like this then you may find a solution outside of R. The front runners are probably:

  Not sure of the R-integration possibilities here, but you'd probably have to export your data to a file and pick it up in the visualisation package. You'd also have to build your complete plot from scratch in the package if its really just an R persp() you want to add to. Most of these packages can do persp()-style plots without even *ahem* persp-iring.

  Some of these packages are scriptable from Python or Tcl, which could make for tighter integration with R. A full R 3d graphics device would be nice... Rgl could be there already! -

Barry mailing list PLEASE do read the posting guide! Received on Fri Jan 20 22:07:15 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:07 EST