[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
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
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