Re: [R] image() and nonsquare matrices

From: Barry Rowlingson <>
Date: Fri 12 Jan 2007 - 10:52:41 GMT

Robin Hankin wrote:
> How do I draw non-square matrices with image() and get the axes right?

> Try 2:
> image(1:20,1:5,a,asp=1,axes=F,xlab="label here")
> axis(side=1,pos=0)
> # No good because the x axis label is floating far from the x axis.

  Its only no good if your plot device isnt a similar aspect ratio to your plot... Resize your graphics window and your label will float around...

  Barry mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Jan 12 21:54:12 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 Jan 2007 - 11:30:27 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.