Re: [R] How to access the attributes of a ggplot?

From: hadley wickham <>
Date: Mon, 07 Apr 2008 15:04:34 -0500

Hi Tribo,

> I found 'ggopts', but it only returns some of the properties. Say I
> want to get the x- and y-axis limits, the tickmark locations, legend
> current position, the legend box and background color and set them to
> new values.
> Are these properties easily accessible (and modifiable) from the object?

Some of them are:

Some of them aren't:



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 07 Apr 2008 - 20:06:50 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 - 10:30:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive