On 02/01/2012 04:31 AM, Kevin Burton wrote:
There must be a trick because I am not seeing a legend:
...

Hi Kevin,
Try calling it like this:

color.legend(-0.4,0.35,0.37,0.4,rect.col=colors,
 legend=1:11,align="rb")

I just looked at the plot limits, par("usr"), and worked out where to put it. I think you may have placed the legend off the device.

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