From bolker@zoo.ufl.edu  Wed Apr 19 16:02:55 2000
From: bolker@zoo.ufl.edu (Ben Bolker)
Date: Wed, 19 Apr 2000 11:02:55 -0400 (EDT)
Subject: [Rd] Windows-specific: image(z,zlim=()) gives bogus colors
 outside  range (PR#525)
In-Reply-To: <38FDCAAA.41B5DAE@statistik.uni-dortmund.de>
Message-ID: <Pine.LNX.4.10.10004191059540.885-100000@bolker.zoo.ufl.edu>


  Oops, I take it back.  I *thought* it worked on Linux, but I just tried
it and got the same problem -- and I get the segmentation fault on Linux
too.

On Wed, 19 Apr 2000, Uwe Ligges wrote:

> bolker@zoo.ufl.edu schrieb:
> > 
> >   In the Windows version of R (not in the equivalent version
> > running on Linux RH 6.0), doing image(z,zlim=c(a,b)) with
> > non-trivial limits (i.e., smaller than the range of z)
> > plots bogus colors (randomly picked from the colormap,
> > perhaps?) in regions where z is outside of zlim.  (on the
> > Linux version those regions are just plotted in black, which
> > seems more appropriate)
> > 
> >   For example:
> > 
> > x <- seq(-1,1,length=50)
> > z1 <- expand.grid(x,x)
> > z2 <- matrix(apply(z1,1,function(x)sum(x^2)),nrow=50)
> > image(z2,zlim=c(0.5,1.5))
> 
> Additionally try
> 
>   image(z2,zlim=c(0.5,0.500001))
> 
> Gives segmentation fault on Solaris / Dr. Watson on WinNT
> 
> Regards, 
> Uwe Ligges
> 
> 

-- 
Ben Bolker                                  bolker@zoo.ufl.edu
Zoology Department, University of Florida   http://www.zoo.ufl.edu/bolker
318 Carr Hall/Box 118525                    tel: (352) 392-5697
Gainesville, FL 32611-8525                  fax: (352) 392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Windows-specific: image(z,zlim=()) gives bogus colors outside range (PR#525)
Ben Bolker