Skip to content
Prev 177061 / 398503 Next

Lattice xyplot: Line and Rectangle in legend.

Hello fellow R users,

I have a problem.  I have created a barchart overlayed by an xyplot line,
both of which read off the same Y axis.  The problem comes when I try to
generate a key.  It seems that I can only create either two lines, or two
rectangles.  I would much prefer to have the barchat series depicted by a
rectangle, and the xyplot series by a line.  Is there a way to do this? 
Your help is much appreciated.

James