Re: [R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread Felipe Carrillo
What about using geom_vline and geom_hline to draw borders. I just couldn't find the way to set the intercept max value for geom_vline and hardcoded it to 5.5 d<- ggplot(mtcars, aes(x=mpg, y=wt)) + geom_point() + facet_grid(. ~ cyl)+ scale_y_continuous(limits=c(0,NA))+ scale_x_continuous(limits=

Re: [R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread hadley wickham
On Jan 27, 2008 4:23 AM, Rainer M Krug <[EMAIL PROTECTED]> wrote: > Hi > > I want to highlight two panels in a grid created with facet_grid() by > putting a box around it or usiong another background colour. Is this > possible, and if yes, how? It's possible, but not particularly easy. You could

[R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread Rainer M Krug
Hi I want to highlight two panels in a grid created with facet_grid() by putting a box around it or usiong another background colour. Is this possible, and if yes, how? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department