On 19.11.2012 23:34, Ben Bolker wrote:
  <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,

... but also returned as a function from a scatterplot3d call. Anyway, it is irrelevant here and Duncan's answer to read the help page is correct: several arguments about controlling colours of different parts of the plot are documented.

Best,
Uwe Ligges


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!

______________________________________________
R-help@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.


______________________________________________
R-help@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.

Reply via email to