Skip to content
Prev 206655 / 398503 Next

lattice and legend

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.col,
          auto.key=list(rectangles = TRUE, space = "bottom"),
          par.settings = simpleTheme(col = my.col)
          )




Dnia 18 stycznia 2010 15:05 Dieter Menne <dieter.menne at menne-biomed.de> napisa?(a):