[R] Different type of legend?

Jim Lemon jim at bitwrit.com.au
Wed Feb 1 10:51:08 CET 2012


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



More information about the R-help mailing list