Skip to content
Prev 106066 / 398506 Next

upside down image/data

the transform that i provided orientates the data matrix so that when plotted with image
or levelplot the result is isomorphic to what you see when you print the matrix at the r
prompt.

i don't know what your data look like---"commented, minimal, self-contained, reproducible
code" would help---but you should be able to work out exactly what way you want your data
to appear by playing with the example code. i would advise you to produce a data matrix
the way you want to see it on the screen, just like the matrix m in the example code, and
then view the output with levelplot(inverse(m)), in which case, the answer to your
question is you only need to transform the data with inverse() once you get your data
matrix to look the way you want at the r prompt.
--- Jenny Barnes <jmb at mssl.ucl.ac.uk> wrote: