R experts, Is there anyway to reorder inside each group? In the following example, the bar of year 1932 is always plotted before the bar of year 1931, may I change the order inside each groups of bars?
library(lattice) barchart(yield ~ variety | site,data=barley, groups = year, layout = c(1,6),auto.key = list(points = FALSE, rectangles = TRUE, space = "right"),ylab = "Barley Yield (bushels/acre)",scales = list(x = list(rot = 45))) Another questions is: may I specify the various ranges of y axis for each row of the panels? In the example of above, how can I change the y range of "Waseca" panel to (40,70) from the default (0,80)? Please notice I don't want to set arguement "scales = list(y=list(relation='free'))", for the automatic various setting of ranges for different panels isn't good enough for me. Basically I'd like to manually control y ranges. Thank you! -- Best, Zhenjiang [[alternative HTML version deleted]] ______________________________________________ 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.