Storing parameters from a graph and applying to other graphs

Posted by Braden on Stack Overflow See other posts from Stack Overflow or by Braden
Published on 2013-10-30T15:38:43Z Indexed on 2013/10/30 15:54 UTC
Read the original article Hit count: 157

Filed under:
|
|

I would like to store the xmin and xmax parameters from one geom_histogram and apply them to a second geom_histogram.

I am putting both graphs on the same page using grid.arrange and would like them to have the same x range, while allowing the first graph to establish the range based on its data. The second graph is produced from a subset of the first graphs data, so it will not have data that falls outside of the x-range established by the first. But I don't want the range to shrink to fit the second graph.

© Stack Overflow or respective owner

Related posts about r

    Related posts about graph