increase_xy_lims | R Documentation |
This returns coordinates which will expand the plotting area when used with
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
## 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.