Re: [R] image() and nonsquare matrices

From: Barry Rowlingson <b.rowlingson_at_lancaster.ac.uk>
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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.