Oh, I finally get it - sorry for being so dense. Basically what you
want is 90 degree rotation of geom_line - you can get that with
coord_flip, but coordinate systems do not currently interact well with
free scales. An alternative is to use geom_path, which connects
points in the in order which they appear in the data:
library(ggplot2)
means <- ddply(mpg, c("manufacturer", "model"), summarise,
displ = mean(displ))
means <- means[with(means, order(manufacturer, displ)), ]
qplot(displ, reorder(model, displ), data = mpg) +
geom_path(aes(group = 1), data = means, colour = "red") +
facet_grid(manufacturer~., space="free", scales="free_y")
Regards,
Hadley
On Sat, Sep 5, 2009 at 3:38 PM, Simon de
--
http://had.co.nz/