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