Take the 2-minute tour ×  I am plotting a time series with mean
values of a response variable as points (y-axis) by month
(x-axis).  Values lying on the x-axis (i.e. 0 values) are
clipped. I can change the limits of the y axis to include some
padding below 0, but I prefer not to.  Is there a way to plot
these 0 points in front of, or on-top of the x-axis?
Matthew![cant post my image...i'm new][1]  share|improve this
question add comment  3 Answers  up vote 4 down vote accepted
Try this,  q <- qplot(1:10,1:10,size=I(10)) +
scale_y_continuous(expand=c(0,0)) gt <-
ggplot_gtable(ggplot_build(q))   share|improve this answer
Thanks. I could not get this to work. ggplot_gtable not
recognized... –  user1267299 Mar 14 '12 at 18:23 you should
update your packages –  baptiste Mar 14 '12 at 18:48 Will do,
and try again. Thank you! –  user1267299 Mar 15 '12 at 5:36
Subbing in the following code turns off clipping when faceting:
gt$layout$clip[grep("panel",gt$layout$name)] <- "off" – 
jslefche May 20 '13 at 17:18 add co