Skip to content
Prev 179335 / 398506 Next

setting trellis auto.key color values

Sundar,

Thanks for the assistance.

Much appreciated.

Steve



Steve Friedman Ph. D.
Spatial Statistical Analyst
Everglades and Dry Tortugas National Park
950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

Steve_Friedman at nps.gov
Office (305) 224 - 4282
Fax     (305) 224 - 4147


                                                                           
             Sundar Dorai-Raj                                              
             <sdorairaj at gmail.                                             
             com>                                                       To 
                                       Steve_Friedman at nps.gov              
             05/05/2009 09:08                                           cc 
             AM MST                    r-help at r-project.org                
                                                                   Subject 
                                       Re: [R] 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:
code
sites
the
color
http://www.R-project.org/posting-guide.html