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 ______________________________________________ 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.