Re: [R] lattice and legend

2010-01-18 Thread robert-mcfadden
Thank you very much. In an example given by you it sufficient to add: par.settings = simpleTheme(col = my.col) Maybe someone else find it helpful. library(lattice) my.col= c("red","green") barchart(yield ~ variety | site, data = barley, groups = year, layout = c(1,6), col= my.co

Re: [R] lattice and legend

2010-01-18 Thread Dieter Menne
robert-mcfadden wrote: > > I use lattice package to produce a bar chart. I set my.kolor for bars and > it displays properly but I have a problem with legend color. It behaves as > if I didn't set my.colors - the colors differs. How to work it out? > > barchart(Counts ~ Purchase | Products

[R] lattice and legend

2010-01-18 Thread robert-mcfadden
I use lattice package to produce a bar chart. I set my.kolor for bars and it displays properly but I have a problem with legend color. It behaves as if I didn't set my.colors - the colors differs. How to work it out? barchart(Counts ~ Purchase | Products , data = my.data, groups = Model, co