Re: R-beta: image

Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
09 Jan 1998 21:40:15 +0100


To: Bill Simpson <wsimpson@uwinnipeg.ca>
Subject: Re: R-beta: image
From: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
Date: 09 Jan 1998 21:40:15 +0100
In-Reply-To: Bill Simpson's message of Fri, 9 Jan 1998 14:07:21 -0600 (CST)

Bill Simpson <wsimpson@uwinnipeg.ca> writes:

> > As usually using the xlab and ylab arguments (same as plot)
> 
> I am using R-0.50-a4  on linux. When I try this I get:
> image(x, y, volcano,col=gray(1:32/32),xlab="X", ylab="Y")
> Error: formal argument "xlab" matched by multiple actual arguments
> 
> (Using volcano data as in help page.) What am I doing wrong?

Using R-0.50-a4.... This has been fixed long since. If you're lazy,
edit the image function.

It now looks like this:

> image
function (x = seq(0, 1, len = nrow(z)), y = seq(0, 1, len = ncol(z)), 
        z, zlim = range(z, na.rm = TRUE), col = heat.colors(12), 
        add = FALSE, xaxs = "i", yaxs = "i", xlab, ylab, ...) 
{
        if (missing(xlab)) 
                xlab <- if (missing(x)) 
                        ""
                else deparse(substitute(x))
        if (missing(ylab)) 
                ylab <- if (missing(y)) 
                        ""
                else deparse(substitute(y))
        if (!add) 
                plot(0, 0, xlim = range(x, na.rm = TRUE), ylim = range(y, 
                        na.rm = TRUE), type = "n", xaxs = xaxs, 
                        yaxs = yaxs, xlab = xlab, ylab = ylab, 
                        ...)
        .Internal(image(as.double(x), as.double(y), as.double(z), 
                as.double(zlim), col))
}

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._