inUSR: does a given pairlist of x and y coordinates fall within the...

View source: R/plot_functions.R

inUSRR Documentation

does a given pairlist of x and y coordinates fall within the plot region?

Description

Check to see if a point clicked falls in the plot or outside it. This function is used by ggbChooseAges().

Usage

inUSR(USR, click)

Arguments

USR

as given by par("usr")

click

a pairlist with elements $x and $y, as returned by locator(1)

Value

logical. TRUE if in the plot region.


albinomatheus/toolbox documentation built on June 13, 2024, 5:42 a.m.