inUSR {DDM}R 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.


[Package DDM version 1.0-0 Index]