[R] rgl 'how-to's

David Winsemius dwinsemius at comcast.net
Thu Sep 8 01:12:16 CEST 2011

On Sep 7, 2011, at 6:07 PM, Dale Coons wrote:

> Doing a visual graphic and trying to make it "pretty"
> Here's simple chart to play with:
> library(rgl)
> dotframe<- 
> data.frame(x=c(0,7,0,0,-7,0),y=c(0,0,7,0,0,-7),z=c(7,0,0,-7,0,0))
> dotframe plot3d(dotframe$x,dotframe$y,dotframe$z, radius=3,  
> type='s',col=c('red','green','blue','purple','orange','gray'),  
> axes=FALSE, box=FALSE, xlab='',ylab='',zlab='')
> text3d(x=7,y=0,z=0, text="hello, world",adj = 0.5, color="blue")  
> #adds a label at one of the points
> My questions:
> 1) is there a way to label the points (spheres in this case) so that  
> the label 'stays on top'?  other than text3d(), which adds labels,  
> but they are hidden when the graph is rotated?
> 2) can a bitmap, say, of a company or university be inserted into  
> the title area?
> 3) can a bitmap be used as the marker for a point?
> Thanks in advance for help-I learn a lot from others questions and  
> appreciate direction (even if it's RTFM!)

No RTFM (or advice) from me. I'm afraid all I have to offer is the  
whimsical notion that the next thing people will request is how to  
program Second Life avatars within R.


David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list