On Tue, Jun 23, 2009 at 1:38 PM, nmset<nm...@netcourrier.com> wrote:
>
> http://www.nabble.com/file/p24173983/groups.csv groups.csv
> http://www.nabble.com/file/p24173983/groups.r groups.r
>
> Hello,
>
> Points of an xyplot can be identified to a particular group according to
> 'sunflowers', a different one per group. However, this distinction does not
> appear in the legend generated by auto.key, all groups are expressed as a
> point or line, of different colours, but without 'sunflowers'. The
> distinction between groups is readily made when there are few groups, but
> not when there are many.
>
> Is there a way to differentiate groups in the legend by the corresponding
> 'sunflowers' in the plot region ?
>
> The attached files would expose the problem graphically.

I'm not sure what your question is, but if it's that the plotting
characters in the legend does not match the ones in the plot, the
simplest way to fix that is

xyplot(LOAD_1 ~ mins, data=upt, type=c('g','p','r'), scales=lst,
groups=hr, auto.key=list(space = "left"),
       par.settings = simpleTheme(pch=1:2))

-Deepayan

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to