[R] ggplot geom_boxplot vertical margins

Justin Haynes jtor14 at gmail.com
Wed May 18 22:51:19 CEST 2011


If you plot:

df<-data.frame(x=factor(1:100),y=rnorm(1000))
ggplot(df,aes(x=x,y=y))+geom_boxplot()

How do I remove those pesky margins on the sides of the plot area?  Or
maybe just reduce their size to something more like the spacing of the
boxes?


Thanks,

Justin



More information about the R-help mailing list