interaction.plot() legend too narrow when mfcol > 2 (PR#1899)
Tue, 13 Aug 2002 09:37:08 +0200 (MET DST)

Here is an example:

 The legends (mainly the factor level names) are cut off on the
 right.  Somehow the internal calculation which computes
 horizontal space for the legend is not flexible enough.

## Call a new graphics window {with default par()s !}:
par(mfrow = c(2,2))

## part of  example(interaction.plot)  _improved_ using with() :
with(OrchardSprays, {
    interaction.plot(treatment, rowpos, decrease)
    interaction.plot(rowpos, treatment, decrease)

with(esoph, {
    interaction.plot(agegp, alcgp, ncases/ncontrols)
    interaction.plot(agegp, tobgp, ncases/ncontrols, trace.label="tobacco",


Something that should be easy to fix, but needs some care (and

Martin Maechler <>
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: