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,19), 
legend=c("7","8","12","13","19"), title="CAVM\nvegetation\ncategories")

Does anyone know a trick to cope with that problem?

Thank you in advance,

Regards,

loïc

        [[alternative HTML version deleted]]

______________________________________________
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