Skip to content
Prev 179328 / 398506 Next

setting trellis auto.key color values

Set the colors in graph.sets and not auto.key.

graph.sets <- list(axis.text = list(cex = 0.65),
              par.ylab.text = list(cex = 1.25),
              par.xlab.text = list(cex = 1.25),
              superpose.polygon = list(col = 3:5))

Then remove the "col = 3:5" from auto.key and barchart.

Also, you can simplify your code by removing "gator_IR$" and including
"data = gator_IR". I.e.

 barchart(MEAN ~ Hydro | as.factor(IR_ID),
                 data = gator_IR, layout = c(4, 1),
                 groups = Rain, ylim = c(0, 1), ...)

HTH,

--sundar
On Tue, May 5, 2009 at 8:32 AM, <Steve_Friedman at nps.gov> wrote: