Re: [R] image() and nonsquare matrices

2007-01-16 Thread Greg Snow
[EMAIL PROTECTED] (801) 408-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hankin Sent: Friday, January 12, 2007 3:13 AM To: RHelp help Subject: [R] image() and nonsquare matrices How do I draw non-square matrices with image

[R] image() and nonsquare matrices

2007-01-12 Thread Robin Hankin
How do I draw non-square matrices with image() and get the axes right? Try 1: a - matrix(rnorm(100),20,5) image(1:20,1:5,a,asp=1,xlab=label here) # No good because the axes don't touch the image Try 2: image(1:20,1:5,a,asp=1,axes=F,xlab=label here) axis(side=1,pos=0) # No good because the

Re: [R] image() and nonsquare matrices

2007-01-12 Thread Barry Rowlingson
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