[R] xyplot legends
David Winsemius
dwinsemius at comcast.net
Tue Sep 14 01:05:04 CEST 2010
On Sep 13, 2010, at 6:25 PM, array chip wrote:
> 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?
It's "key", not "keys"
See if this is closer to what you had in mind:
key=list(type="o", lines=list(col=1:3,pch=1:3, size=4 )
>
>
> that is the default is plotting like this:
> ----- o
>
> but I want something like this:
> ---o---
The best I could do was:
-o--o--o-
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list