Re: [R] image() z-values beyond zlim

From: Roger Bivand <Roger.Bivand_at_nhh.no>
Date: Fri 04 Mar 2005 - 05:10:47 EST


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@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@nhh.no

______________________________________________
R-help@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
Received on Fri Mar 04 09:34:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:40 EST