[R] scatterplot3d and box3d

Ben Bolker bbolker at gmail.com
Mon Nov 19 23:34:03 CET 2012


 <xgao <at> genome.wustl.edu> writes:

> 
> I created a 3d scatter plot and am trying to change the color of outer box
> lines with box3d.
> 
> Anybody can help me to figure out how to do this?
> 
> My example is:
> 
> library(scatterplot3d)
> x=seq(1:6)
> y=seq(7:12)
> z=x*2
> scatterplot3d(x, y,z)


 This is not going to be possible in the narrow sense: box3d is
from the rgl package, which uses a completely different graphics
device/protocol.  You can combine plot3d with box3d (or rgl.bbox)

By the way, seq(7:12) probably doesn't do what you think it does!




More information about the R-help mailing list