Try this,
library(ggplot2)
d = data.frame(x=rnorm(20), y = rnorm(20), f =
factor(rep(letters[1:2],each=10)))
dd = data.frame(f="b", xmin=-0.5, ymin=-Inf, xmax=0.5, ymax=Inf) # for
the rectangle, only in panel "b"
ggplot(d) + facet_grid(f~.) +
geom_rect(aes(xmin=xmin,ymin=ymin, xmax=xmax, ymax=ymax),
fill="red", alpha=0.2, data=dd) +
geom_point(aes(x,y))
HTH,
baptiste
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>