[R] Persp and color and adding a color vector
mmarques at power.inescn.pt
Tue Sep 16 15:36:16 CEST 2003
Followin Prof. Uwes idea and after checking up some docs I was able to
build a color vector with the correct colors and then "call" it from
using persp col = option ...
Nevertheless I still have a small problem...
using something like :
colorvect <- rainbow(length(mat3),start=0.1,end=0.8)
persp(mat3,col=colorvect, box= FALSE, theta=30)
works something like I need...
if I try to visualize a specific part like mat3[1:900,2:78] ...
persp(mat3[1:900,2:78,col=colorvect, box= FALSE, theta=30)
What I get is bleach result with only part of the colors...
I know that I were specting this but how can I avoid it with making
the colorvect vector each time I call persp ?
The other idea is making an equivalent matrix with each cell with the
but how can I automate that kind of procedure ?
More information about the R-help