R-beta: image

Ross Ihaka ihaka at stat.auckland.ac.nz
Fri Jan 9 21:27:25 CET 1998


	> >>>>> 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list