Skip to content
Prev 1674 / 398506 Next

image ()

I had this same question about two days ago and I think I concluded
that the [1,1] element of the matrix is the upper left corner of
the image plot, which is the (1,n) coordinate in the plot space.
The [n,1] element of the matrix is the (1,1) coordinate in the plot
space, the [1,n] element is the (n,n) coordinate and the 
[n,n] element is the (n,1) coordinate.  
This actually makes sense if the grid coordinates are indexed like:
 
1  5  9  13
2  6  10 14
3  7  11 15
4  8  12 16

which is pretty standard (then points in the data matrix
correspond to the matrix that indexes grid points...or the
ith element of the vec of the data matrix corresponds to the
ith grid point), then the pixels in the image that you view 
are arranged like the grid points. Also, this indexing of
grid points  is convenient for locating the neighbors of any point.

In any case, I had a question about putting a legend on an
image plot.  Can someone give me advice on that?  I was hoping
that a canned legend function exists for image, but it doesn't
appear so.

One other question: Contour does not appear to label contour lines.
Was this a neglected detail, or a feature?

regards,
andy
On Thu, 3 Dec 1998, Lorenz Gygax wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._