sp_get_ggplot_limits: Get the x, y limits of a ggplot2 plot

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Get the x, y limits of a ggplot2 plot

Usage

1

Arguments

p

A ggplot2 object

Value

A list list(xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax)

Examples

1
2
3
4
## Not run:
sp_get_ggplot_limits(p)

## End(Not run)

Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.