Description Usage Arguments Value Examples
View source: R/plotting_functions.R
This returns coordinates which will expand the plotting area when used with
1 | increase_xy_lims(plt, prop = 0.25)
|
plt |
ggplot object |
prop |
proportion to exand the x & y limits |
list with x & y limits as vector
1 2 3 4 5 | ## Not run:
xy_lims <- increase_xy_lims(plt, .15)
plt + coord_cartesian(xlim = xy_lims$x_lims, ylim = xy_lims$y_lims)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.