increase_xy_lims: Returns expanded coordinates of a ggplot

increase_xy_limsR Documentation

Returns expanded coordinates of a ggplot

Description

This returns coordinates which will expand the plotting area when used with

Usage

increase_xy_lims(plt, prop = 0.25)

Arguments

plt

ggplot object

prop

proportion to exand the x & y limits

Value

list with x & y limits as vector

Examples

## 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)


lefeverde/lefutils documentation built on Sept. 18, 2024, 7:30 a.m.