Marshall Feldman
2010-Apr-09 12:42 UTC
[R] Combining ggplot2 objects and/or extracting layers
Hi, Other then rebuilding the plots, is there any way either (1) to combine existing ggplot2 plots or (2) to extract a layer from an existing plot so that it can be added to another? Thanks. -- Dr. Marshall Feldman, PhD Director of Research and Academic Affairs Center for Urban Studies and Research The University of Rhode Island email: marsh @ uri .edu (remove spaces) Contact Information: Kingston: 202 Hart House Charles T. Schmidt Labor Research Center The University of Rhode Island 36 Upper College Road Kingston, RI 02881-0815 tel. (401) 874-5953: fax: (401) 874-5511 Providence: 206E Shepard Building URI Feinstein Providence Campus 80 Washington Street Providence, RI 02903-1819 tel. (401) 277-5218 fax: (401) 277-5464 [[alternative HTML version deleted]]
hadley wickham
2010-Apr-09 12:48 UTC
[R] Combining ggplot2 objects and/or extracting layers
> Other then rebuilding the plots, is there any way either (1) to combine > existing ggplot2 plots or (2) to extract a layer from an existing plot > so that it can be added to another?Not really, although you can always pull apart the plot components. Can you give an example of what you are trying to achieve? Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/