[R] image() and text
Paul Murrell
p.murrell at auckland.ac.nz
Tue Feb 7 23:39:57 CET 2006
Hi
Andrej Kastrin wrote:
> Dear useRs,
>
> I have 4Ã4 symmetrical matrix ; then I use
>
> image(log(my.matrix)) to visualise it.
>
> Is there any 'simple' way to add text labels into each cell lie on
> diagonal of the image plot? Thanks for any pointers...
Do you mean something like ...?
m <- matrix(rnorm(100), ncol=10)
image(m)
text(0:9/9, 0:9/9, 0:9)
Paul
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list