Hello,

I am trying to make a plot using the code below. The plot is divided into two parts, using facet_grid. I would like the vertical axis (labelled 'place') to be different for each location (=part). So in the upper part, only places 'n' through 'z' are shown, while in the lower part, only places 'a' through 'm' are shown. I thought 'free_y' would do the trick. I also tried converting variable place into class 'factor'.


require(ggplot2)
DF <- data.frame(place=letters, value=runif(26), location=c(rep(1, 13), rep(0, 13)))
qplot(data=DF, x=place, y=value, geom="bar", stat="identity") + 
  coord_flip() + 
  geom_abline(intercept=35, slope=0, colour="red") +
  facet_grid(location ~ ., scales="free_y")
R.version.string # "R version 2.10.1 (2009-12-14)"


Thank you in advance & merry xmas!
 
Cheers!!
Albert-Jan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	[[alternative HTML version deleted]]

