Dear all,
Is there a straightforward way to create a legend box that has both filled
boxes and lines?
So far I have built around this problem by creating two legends (with bty =
n) and manually drawing a box around both (but this is cumbersome,
because I have to check upon the y coordinates of
Did you try legend(.., lty=..., fill=..., merge = TRUE) ?
In an example I just tried, this allowed to give filled boxes
*and* lines.
Please give a reproducible example of what you did -- maybe by
modifying one of the many example(legend) examples.
Martin Maechler, ETH Zurich
florian