Le 12/03/13 23:43, Zhuoting Wu a écrit :
> I have a 3 column dataset x,y,z, and I plotted a 3d scatter plot using:
>
> cols <- myColorRamp(c(topo.colors(10)),z)
> plot3d(x=x, y=y, z=z, col=cols)
>
> I wanted to add a legend to the 3d plot showing the color ramp. Any help
> will be greatly appreciated!
>
>
Look at the package fields:
?colorbar.plot

Marc

-- 
__________________________________________________________
Marc Girondot, Pr

Laboratoire Ecologie, Systématique et Evolution
Equipe de Conservation des Populations et des Communautés
CNRS, AgroParisTech et Université Paris-Sud 11 , UMR 8079
Bâtiment 362
91405 Orsay Cedex, France

Tel:  33 1 (0)1.69.15.72.30   Fax: 33 1 (0)1.69.15.73.53
e-mail: marc.girondot@u-psud.fr
Web: http://www.ese.u-psud.fr/epc/conservation/Marc.html
Skype: girondot


	[[alternative HTML version deleted]]

