hadley/ggplot2 — Issue #312: regression in facet_grid space = free
Author: wligtenberg
Created: 2011-12-21 07:51:23+00:00
State: open

space = free does not seem to work as previous.
Only the y space seems to be divided as previously, in 0.8.9 the bars would be of equal width.

Test with following code in 0.8.9 and then in github version:
library(ggplot2)
Animal <- paste("Anim", 1:34, sep = "")
xx <- data.frame(Animal, Value = c(sample(1:10, 17, replace = TRUE),
sample(1:2, 17, replace = TRUE)/5),
group = rep(c(rep("X", 15), rep ("Y", 2)),2), measurement =
c(rep("measurm A",17), rep ("measurm B", 17)), stringsAsFactors =
FALSE)

q <- ggplot(data = xx, aes(x = Animal, y = Value))
q <- q + geom_bar(stat = "identity")
q <- q + facet_grid(measurement ~ group, scales = "free", space =
"free")
q <- q + opts(title = "Option Space Free")
print(q)