[R] persp & colors

Timur Elzhov Timur.Elzhov at jinr.ru
Sun Jun 1 18:39:17 CEST 2003


Dear R experts!

I use image() & persp() functions for color plotting z(x,y)-type
graphics.  In image() colors correspond to z-values, that's what
I want.   OTOH, in persp() the col option means:

     col: the color(s) of the surface facets.  Transparent colours are
          ignored.  This is recycled to the (nx-1)(ny-1) facets.

but I'd like to persp()' colors behave like in image() function!

Could you help me to solve this problem?
Thank you very much.


--
WBR,
Timur.




More information about the R-help mailing list