[R] Tweaking my plot of matrix as image
Jim Lemon
jim at bitwrit.com.au
Thu Apr 12 12:55:52 CEST 2007
Wee-Jin Goh wrote:
> Greetings list,
>
> I have a rectangular 20 x 20 matrix with values in the range of [0 ,
> 1]. I'd like to plot it as an image. To that end, I have used the
> image() function that seems to do what I want. Now, I just want to
> tweak it to look perfect. So here is my question:
>
> At the moment, the values of the axis range from [0, 1]. I want it to
> show the row and column of the matrix. How do I do that?
>
Perhaps color2D.matplot will suit you. It automatically shows the row
and column indices on the plot in the same order as conventional matrix
displays.
Jim
More information about the R-help
mailing list