Re: [R] help with cube3d cube size

From: Ben Bolker <bolker_at_ufl.edu>
Date: Wed, 25 Jun 2008 02:54:36 +0000 (UTC)

Mark Kimpel <mwkimpel <at> gmail.com> writes:

>
> I'm using the command below on an open3d() object to create a shaded
> cube. Changes to myScalingFactor do not effect changes in the size of
> the cube. What is the correct approach? Mark

  how about scale3d() ?

shade3d(translate3d(scale3d(cube3d(),5,5,5),-6,1,-1),col="blue", alpha = 0.2)
shade3d(translate3d(cube3d(),-6,1,-1),col="green", alpha = 0.2)
shade3d(translate3d(scale3d(cube3d(),10,10,10),-6,1,-1),col="red", alpha = 0.2)

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 25 Jun 2008 - 03:02:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 25 Jun 2008 - 16:30:53 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive