Dear R developers,

The following command produces an interaction plot with lwd=2.

interaction.plot(c(1, 2, 1, 2), c(1, 1, 2, 2), 1:4, lwd=2)

In the legend, however, lwd seems to be 1, which does not seem
to be intended behavior. Probably the lwd is not correctly forwarded
to legend:

from the interaction.plot source:

        legend(xleg, yleg, legend = ylabs, col = col, pch = if (type %in%
            c("p", "b"))
            pch, lty = if (type %in% c("l", "b"))
lty, bty = leg.bty, bg = leg.bg) <- here I would add lwd=<well, the lwd from the ... argument, or perhaps something like leg.lwd>

Best wishes,

Matthias Gondan

______________________________________________
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