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 May 19, 2023, 4 p.m.