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 function.

No code was attached.

But there was code at the link. It does behave as hoped with defaults unchanged, but when cex is altered, the size of the box does not seem to change appropriately.


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@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.

______________________________________________
R-help@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.

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to