Re: [R] How to sort a grouped barchart?

2010-05-09 Thread LeandroTV
Thanks for both. The reorder function works perfectly. -- View this message in context: http://r.789695.n4.nabble.com/How-to-sort-a-grouped-barchart-tp2133579p2164506.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.

[R] How to sort a grouped barchart?

2010-05-06 Thread LeandroTV
Hi, I have a barchart very similar to the example on the function documetation, however, I want to sort the bars according one group in one panel. Reminding: library(lattice) barchart(yield ~ variety | site, data = barley, groups = year, layout = c(1,6), ylab = "Barley Yield (b