Skip to content
Prev 262734 / 398502 Next

xyplot Legend Title and Position

Hi:

Part of the problem is that you have a point in the upper right corner
of your plot, so one way around it is to expand the y-range. Try this:

xyplot(Yield ~ Date,
      groups=Machine, ylim = c(7, 22),
      auto.key=list(title="Machine", corner = c(0.95, 1), cex=1.0),
       par.settings = list(superpose.symbol=list(pch = 0:18, cex=1)),
      )

HTH,
Dennis
On Tue, Jun 14, 2011 at 4:36 PM, Justin McBride <crazyhawk48 at gmail.com> wrote: