[R] ggplot: Axis lines

Pedro de Barros pbarros at ualg.pt
Mon Apr 7 16:51:13 CEST 2008


Dear All,

I am trying to print some simple ggplot plots, but I would like to 
have no gridlines, and no border.
I have achieved this using ggopt(grid.lines='NA', border.lines='NA').

However, this also clears the axis lines, and reading the help, it 
looks like the "axis" objects have only two slots, "label" and "ticks".

How can I get rid of gridlines and border, and still keep the axis lines?

Thanks,
Pedro



More information about the R-help mailing list