[R] xyplot legends

array chip arrayprofile at yahoo.com
Tue Sep 14 00:25:18 CEST 2010


Hi all, I

When I plot both lines and points using type=c('l', 'p') in xyplot(), if I want 
to include in legend both of them using keys=list(lines=list(col=1:3), 
points=list(pch=1:3)), the lines and points are plotted side by side in legend. 
Is there anyway to plot the points in the middle of the lines instead? 


that is the default is plotting like this:
----- o

but I want something like this:
---o---

Thanks for any suggestions

John



More information about the R-help mailing list