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-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Em
nome de Luis Ridao Cruz
Enviada em: terça-feira, 17 de março de 2009 11:09
Para: r-h...@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@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.

______________________________________________
R-help@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.

Reply via email to