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) Thanks. Xin
On 12-11-19 12:20 PM, xgao at genome.wustl.edu wrote:> 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)See ?scatterplot3d. Duncan Murdoch
<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!