Re: [R] help with cube3d cube size

From: Ben Bolker <>
Date: Thu, 26 Jun 2008 11:37:35 -0500

   One way to get at all the functions (although not as easy as help() is

library(rgl); ls(pos=2)

which literally lists the available functions. As Duncan said, there are multiple functions documented in each page and only the page definitions show up (e.g. "matrices" is the page for "work[ing] with homogeneous coordinates", and contains 10 different functions ...) or ? because some functions are hidden in the namespace [but I think the former]).

   (2) demo(package="rgl") may be helpful

   (3) it would be interesting to try to extract a list of all the package that have rgl as dependencies or suggestions -- I know offhand of emdbook, Rcmdr, vegan ...

   (4) would you like to draft a vignette as you figure rgl out?

   Ben Bolker

Mark Kimpel wrote:
> Ben and Duncan,
> Thanks for your helpful suggestions. I"m having some difficulty
> navigating this really good package using my normal learning
> techniques. When I do 'help(package = "rgl") it seems only a very
> small subset of functions available show up. Perusing the rgl.pdf
> downloaded from CRAN demonstrates the same lack of documentation.
> There is no vignette. In addition, I have found at least one other
> package with 3d functions (emdbook::curve3d()).
> What is the best resource for learning about all the foo3d() and lower
> level functionality that rgl and its dependents provide? I saw a book
> at B&N just last week on openGL. Would that be helpful?
> Mark
> On Tue, Jun 24, 2008 at 10:54 PM, Ben Bolker <> wrote:

>> Mark Kimpel <mwkimpel <at>> 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)
>> ______________________________________________
>> mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.


> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 26 Jun 2008 - 15:59:22 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 Thu 26 Jun 2008 - 16:31:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive