Re: [Rd] Question about image() behavior

2009-11-25 Thread Duncan Murdoch
On 25/11/2009 3:00 PM, Justin McGrath wrote: If the x vector has a gap, then image() fills in those spots using the z value of the nearest x value. I had expected it to just leave those spaces blank though. For example x=c(1:5,100:105) y=c(1:10) z=matrix(rnorm(100),10,10) image(x,y,z) I expecte

[Rd] Question about image() behavior

2009-11-25 Thread Justin McGrath
If the x vector has a gap, then image() fills in those spots using the z value of the nearest x value. I had expected it to just leave those spaces blank though. For example x=c(1:5,100:105) y=c(1:10) z=matrix(rnorm(100),10,10) image(x,y,z) I expected that to produce a figure with a wide vertical