I read the docs for R image() , but I don't get it. Why is this matrix:
> mat1 [,1] [,2] [,3] [1,] 1 0 1 [2,] 0 1 0 [3,] 0 0 0
Set up like this:
> image(c(1:3), c(1:3), mat1)
do the following:

And how can I make the layout the same as the printed matrix? It is not a matter of simply transposing the transpose to flip x and y, since it ends with the upside down image.
r image
helloB
source share