[R] RES: set a legend with an "image" graph

Rodrigo Aluizio r.aluizio at gmail.com
Tue Mar 17 15:26:38 CET 2009


Luis, take a look at the ?legend function, it can produce almost any kind of
legend you may need!

Hope It helps.

Rodrigo.

-----Mensagem original-----
De: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Em
nome de Luis Ridao Cruz
Enviada em: terça-feira, 17 de março de 2009 11:09
Para: r-help at stat.math.ethz.ch
Assunto: [R] set a legend with an "image" graph

R-help,

I have an image plot and I wish to set a legend to it
but I don't have an idea how to do it. Below it's the code line.

image(yyy, col = rev(heat.colors(10)), axes = T)

Thanks in advance.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list