increase_xy_lims: Returns expanded coordinates of a ggplot

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

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

Usage

1
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

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)

lefeverde/basicOmics documentation built on Feb. 28, 2021, 11:03 p.m.