[R] Adding units to levelplot's colorkey

David Winsemius dwinsemius at comcast.net
Tue Nov 15 15:05:30 CET 2011

On Nov 15, 2011, at 8:23 AM, Carlisle Thacker wrote:

> Sorry that I was not clear.  I was asking how to add annotation to  
> levelplot's colorkey, not the levelplot itself.  The only entry I  
> can find from the help pages is via its labels.
> Googling did yield this:  " draw.colorkey() doesn't support a title  
> for the legend".  So I presume there is also no support for any  
> other annotation.

You are right. I failed to test my presumptions. Apologies extended.


> Thanks for your assistance.
> On 11/15/11 7:54 AM, David Winsemius wrote:
>> On Nov 14, 2011, at 7:20 PM, Carlisle Thacker wrote:
>>> Thanks, Dennis.  Yes, I can do that, but that locks the physical  
>>> units to locations of the labels.  I had hoped that there might be  
>>> something a bit more flexible, like a subtitle or more general text.
>> If you would take the time to describe what you wanted you would  
>> save everybody's time, yours and ours. I'm sure that levelplot's  
>> help page refers you to the xyplot help page for details on key  
>> parameters. So here are a few of the parameter it makes available  
>> but the entirelist takes up several pages and is not reproduced here:
>> title
>> String or expression giving a title for the key.
>> cex.title
>> Zoom factor for the title.
>> lines.title
>> The amount of vertical space to be occupied by the title in lines  
>> (in multiples of itself). Defaults to 2.

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list