Message-ID: <5c244aae.2001ac19.4b546197.69d26@o2.pl
Date: 2010-01-18T13:26:47Z
From: Robert
Subject: lattice and legend
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,
col=my.kolor,horizontal=FALSE,layout=c(1,4),
auto.key=list(rectangles = TRUE, space = "bottom"),scales = list(y = "free"))
Best,
Robert