Re: R-beta: image

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Sat, 10 Jan 1998 09:27:25 +1300 (NZDT)


Date: Sat, 10 Jan 1998 09:27:25 +1300 (NZDT)
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Message-Id: <199801092027.JAA16249@stat1.stat.auckland.ac.nz>
To: wsimpson@uwinnipeg.ca
Subject: Re: R-beta: image

	> >>>>> On Wed, 7 Jan 1998 16:40:53 -0600 (CST),
	> >>>>> Bill Simpson (BS) wrote:
	> 
	> BS> Questions on image:
	> BS> 1) How can I put labels on the x and y axes?
	> 
	> 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?

	Thanks very much for any help.


I'm not sure what the problem is (I don't have a R-0.50-a4 handy),
but here is a quick work around.

After you have created the image plot, you can use use the function
"title" to add annotation to a plot.

	image( ... )
	title(xlab="xlab here", ylab="ylab here")

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