[R] line jump in plot legend title

Duncan Murdoch murdoch.duncan at gmail.com
Tue Jul 19 16:38:32 CEST 2011


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, could you make sure that your modification is to the 
version of the code that's in the svn repository?  Then it will be 
straightforward to import your change into R.

That version is online at

https://svn.r-project.org/R/trunk/src/library/graphics/R/legend.R

if your changes only affect the legend() function.

Duncan Murdoch

>
> Thanks to David
>
> Regards,
>
> Loïc
> Wageningen University
>
> http://r.789695.n4.nabble.com/file/n3677996/legend.r legend.r
>
> --
> View this message in context: http://r.789695.n4.nabble.com/line-jump-in-plot-legend-title-tp3676157p3677996.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list