getCurrentLimits: Get Current xlim and ylim

View source: R/limits.R

getCurrentLimitsR Documentation

Get Current xlim and ylim

Description

get the values of xlim and/or ylim that created the last plot

Usage

getCurrentLimits(
  type = "xy",
  xaxs = graphics::par("xaxs"),
  yaxs = graphics::par("yaxs")
)

Arguments

type

one of "x", "y" or "xy", see section "Value"

xaxs

value of argument xaxs when calling a plot function last, see par

yaxs

value of argument yaxs when calling a plot function last, see par

Value

type = "x" or "y": vector of two elements corresponding to xlim or ylim, respectively. type = "xy": list with elements xlim and ylim each of which is a vector of two elements.


KWB-R/kwb.plot documentation built on Oct. 2, 2023, 10:16 p.m.