Re: [R] line jump in plot legend title

2011-07-19 Thread Dutrieux , Loïc
- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: dinsdag 19 juli 2011 16:56 To: Duncan Murdoch Cc: Dutrieux, Loïc; r-help@r-project.org Subject: Re: [R] line jump in plot legend title On Jul 19, 2011, at 10:38 AM, Duncan Murdoch wrote: > On 11-07-19 8:16 AM, loic wrote: &g

Re: [R] line jump in plot legend title

2011-07-19 Thread David Winsemius
On Jul 19, 2011, at 10:38 AM, Duncan Murdoch wrote: On 11-07-19 8:16 AM, loic wrote: As suggested by David, I applied some modifications to the code of the legend function so that the legend box size adapts to the number of line jumps in the legend title. Attached the modified code of the

Re: [R] line jump in plot legend title

2011-07-19 Thread Duncan Murdoch
On 11-07-19 8:16 AM, loic wrote: As suggested by David, I applied some modifications to the code of the legend function so that the legend box size adapts to the number of line jumps in the legend title. Attached the modified code of the function. No code was attached. In case you didn't, cou

Re: [R] line jump in plot legend title

2011-07-19 Thread loic
As suggested by David, I applied some modifications to the code of the legend function so that the legend box size adapts to the number of line jumps in the legend title. Attached the modified code of the function. Thanks to David Regards, Loïc Wageningen University http://r.789695.n4.nabble.c

Re: [R] line jump in plot legend title

2011-07-18 Thread David Winsemius
On Jul 18, 2011, at 1:14 PM, Dutrieux, Loïc wrote: Hello, In order to reduce the width of my legend in a plot I introduced line jumps in the title. Here's the problem; the legend box hasn't adapted accordingly and part of the title is printed out of the frame. See the example below: plot

[R] line jump in plot legend title

2011-07-18 Thread Dutrieux , Loïc
Hello, In order to reduce the width of my legend in a plot I introduced line jumps in the title. Here's the problem; the legend box hasn't adapted accordingly and part of the title is printed out of the frame. See the example below: plot(1:10) legend("bottomright", bg="white", fill=c(7,8,12,13,