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

View source: R/utilities.R

sp_get_ggplot_limitsR Documentation

Get the x, y limits of a ggplot2 plot

Description

Get the x, y limits of a ggplot2 plot

Usage

sp_get_ggplot_limits(p)

Arguments

p

A ggplot2 object

Value

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

Examples

## Not run:
sp_get_ggplot_limits(p)

## End(Not run)

Tong-Chen/ImageGP documentation built on April 14, 2025, 12:54 p.m.