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. TIA. -- View this message in context: http://www.nabble.com/Identify-groups-by-character-point-in-xyplot-legend-tp24173983p24173983.html Sent from the R help mailing list archive at Nabble.com.
Deepayan Sarkar
2009-Jun-24 01:00 UTC
[R] Identify groups by character point in xyplot legend
On Tue, Jun 23, 2009 at 1:38 PM, nmset<nmset at 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