Skip to content

image() z-values beyond zlim

2 messages · Mikkel Grum, Roger Bivand

#
Dear useRs,

When plotting with image(), I would like the z-values
that extend beyond the upper zlim to be indicated with
one colour, or preferably with som sort of hatching,
as I'm printing in black and white.  By default these
values just show up as blank areas in the image.  I've
tried all sorts of things, but nothing seems to work
for me.

Any solutions would be greatly appreciated.

cheers,
Mikkel
#
On Thu, 3 Mar 2005, Mikkel Grum wrote:

            
Use the breaks= and col= arguments to do this, extending zlim= to be the 
range of z (or just drop it). Values of z outside zlim are made NA, and 
thus not included in the span of colours.