[R] rgl 'how-to's

Dale Coons dale.coons at gmail.com
Thu Sep 8 00:07:16 CEST 2011


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!)

Dale



More information about the R-help mailing list