On 10/25/2013 08:38 PM, Alaios wrote:
Hi all,
I would like to ask your help to add a color band (Ι am not sure regarding the right 
term, this color band at the right of the plot "describing" values with their 
corresponding color.

For now I have only this code



test<-matrix(data=runif(10000),nrow=100)
plot(test,axes="FALSE")

axis(1,at=c(0,1),labels=c("a","b")) #

but  I would like to add at the right  side the color legend.

How can I do that in R?

I would like to thank you in advance for your help

Hi Alex,
If all else fails, look at color.legend (plotrix).

Jim

______________________________________________
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