[R] image() z-values beyond zlim

Roger Bivand Roger.Bivand at nhh.no
Thu Mar 3 19:10:47 CET 2005

On Thu, 3 Mar 2005, Mikkel Grum wrote:

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

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.

> Any solutions would be greatly appreciated.
> cheers,
> Mikkel
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no

More information about the R-help mailing list