Skip to content
Prev 243651 / 398506 Next

Question regarding legend look

On 01/12/2010 10:13 AM, Filoche wrote:
There is no parameter to the legend function to control this, but it is 
pure R code, so you could write your own by modifying the legend() function.

If you take a look at legend, you'll see that it draws lines of length 2 
(in some units) when do.lines is TRUE.  Change that to a bigger number, 
and you'll get longer lines.  You'll also need to fiddle with the size 
of the box, or the legend won't fit.  (I think xbox is the variable 
holding its width.)

Duncan Murdoch