You can add this to your plot.
+ opts(panel.grid.minor = theme_blank())
+ opts(panel.grid.major = theme_blank())
+ opts(axis.line = theme_segment())
Starting with version 0.9.2, it has optsbeen replaced by theme:
+ theme(panel.grid.minor = element_blank())
+ theme(panel.grid.major = element_blank())
+ theme(axis.line = element_segment())
source
share