Storing parameters from a graph and applying to other graphs
- by Braden
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.