[Rd] Question about image() behavior

From: Justin McGrath <justinmcgrath_at_stanford.edu>
Date: Wed, 25 Nov 2009 12:00:00 -0800


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 gap between x=5 and x=100.

Is this the correct behavior? Could there be an option added to choose between these two behaviors? Either way, it should be stated in the documentation.

Justin

        [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 25 Nov 2009 - 20:46:12 GMT

This archive was generated by hypermail 2.2.0 : Thu 26 Nov 2009 - 01:40:47 GMT