[R] Repeating grey scale in graph?

2005-02-16 Thread Sander Oom
Dear R users, Could somebody tell me why the grey color ramp is repeated in this graph, eventhough the ramp values go from 0 to 1? I must be missing something obvious, but I can not see it! z - c(0.064329041,0.117243316,0.161565116,0.19923015,0.231642175,0.259835539,0.284571226,

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Uwe Ligges
Sander Oom wrote: Dear R users, Could somebody tell me why the grey color ramp is repeated in this graph, eventhough the ramp values go from 0 to 1? I must be missing something obvious, but I can not see it! You missed to read the ehlp page ?persp: col: the color(s) of the surface facets.

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Peter Dalgaard
Sander Oom [EMAIL PROTECTED] writes: Dear R users, Could somebody tell me why the grey color ramp is repeated in this graph, eventhough the ramp values go from 0 to 1? I must be missing something obvious, but I can not see it! z -

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Sander Oom
Thanks Peter! Of course I only have (nx-1)(ny-1) facets in a x*y plot! The help page line: ... col the color(s) of the surface facets. Transparent colours are ignored. This is recycled to the (nx-1)(ny-1) facets. ... just did not ring a bell. In fact, it is still not clear to me why it recycles

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Achim Zeileis
On Wed, 16 Feb 2005 15:44:00 +0200 Sander Oom wrote: Thanks Peter! Of course I only have (nx-1)(ny-1) facets in a x*y plot! The help page line: ... col the color(s) of the surface facets. Transparent colours are ignored. This is recycled to the (nx-1)(ny-1) facets. ... just did not

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Uwe Ligges
Sander Oom wrote: Thanks Peter! Of course I only have (nx-1)(ny-1) facets in a x*y plot! The help page line: ... col the color(s) of the surface facets. Transparent colours are ignored. This is recycled to the (nx-1)(ny-1) facets. ... just did not ring a bell. In fact, it is still not clear

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Peter Dalgaard
Achim Zeileis [EMAIL PROTECTED] writes: In fact, it is still not clear to me why it recycles the ramp even though it has a surplus of colours (grey levels)! Why not just ignore the surplus colours? It does! cols is a vector of length 42 and only the first 30 are used. Try to use

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Duncan Murdoch
On Wed, 16 Feb 2005 15:44:00 +0200, Sander Oom [EMAIL PROTECTED] wrote : Thanks Peter! Of course I only have (nx-1)(ny-1) facets in a x*y plot! The help page line: ... colthe color(s) of the surface facets. Transparent colours are ignored. This is recycled to the (nx-1)(ny-1) facets. ...

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Sander Oom
Aaaah...the inner workings of R! Now I also see why the colours are not only repeated, but also 'wrongly' allocated to the facets! Very clear example! Indeed a warning or error would have been more helpful! Cheers, Sander. PS: I hope that after all this, I can still convince the creator of the