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
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
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
3 matches
Mail list logo