Re: [R] image() and text

From: Paul Murrell <p.murrell_at_auckland.ac.nz>
Date: Wed 08 Feb 2006 - 09:39:57 EST

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@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Feb 08 09:48:35 2006

This archive was generated by hypermail 2.1.8 : Fri 10 Feb 2006 - 19:16:58 EST