gg_rescale: Rescale a ggplot2 plot so that axes follow a given ratio
Description
gg_rescale rescales the given ggplot2 so that the axes follow the
given ratio (horizontally). If a plot is not specified, the last plot
displayed is used. gg_rescale_golden rescales a ggplot2 plot so that axes
follow golden ratio gg_rescale_square rescales a ggplot2 plot so that its
axes are square
A ggplot2 plot object. By default, the last plot displayed is
used.
ratio
The aspect ratio to use for the axes. This is independent of
units used in the plot, so the size of the X axis will be ratio times the
total size of the Y axis.
orient
Whether the golden ratio should be horizontal
(h; default) or vertical (v)