Grouped horizontal boxplot with bwplot
问题 I have the following code that allows grouped vertical box-plots via the bwplot function in lattice . Reproducible example.. data(mpg, package = "ggplot2") bwplot( hwy~class, data = mpg, groups = year, pch = "|", box.width = 1/3, auto.key = list(points = FALSE, rectangles = TRUE, space = "right"), panel = panel.superpose, panel.groups = function(x, y, ..., group.number) { panel.bwplot(x + (group.number-1.5)/3, y, ...) }) This works fine, but I would like the boxplots to be horizontal, so I