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,
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.
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 -
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
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
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
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
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.
...
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