Re: [R] ggplot: Axis lines

From: hadley wickham <h.wickham_at_gmail.com>
Date: Mon, 07 Apr 2008 22:29:36 -0500

Hi Pedro,

> 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?

There's no built in way to do this at the moment. However you can always modify the underlying grid objects - see the last chapter of the ggplot2 book.

Hadley

-- 
http://had.co.nz/

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 08 Apr 2008 - 03:35:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Apr 2008 - 05:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive