Re: [R] xyplot Legend Title and Position

2011-06-20 Thread Deepayan Sarkar
On Wed, Jun 15, 2011 at 6:32 PM, Justin McBride wrote: > Dennis, > > Thanks for your suggestion, but that is not exactly what I was after. > I was trying to get the legend in the margin on the top right of the > page and not in the plot frame.  Is there a way to do this? One option is: xyplot(Yi

Re: [R] xyplot Legend Title and Position

2011-06-15 Thread Justin McBride
Dennis, Thanks for your suggestion, but that is not exactly what I was after. I was trying to get the legend in the margin on the top right of the page and not in the plot frame. Is there a way to do this? Thanks, Justin On Tue, Jun 14, 2011 at 6:03 PM, Dennis Murphy wrote: > Hi: > > Part of t

Re: [R] xyplot Legend Title and Position

2011-06-14 Thread Dennis Murphy
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 = l

[R] xyplot Legend Title and Position

2011-06-14 Thread Justin McBride
Dear R Community, I'm using xyplot in Lattice with a legend and a title on the legend. The title on legend is being cut off, as can be seen by running the code below. The legend is on the right, but I would like to get to the top right of the graphics window. Is there a way to get the legend ti