guessage: which age is closest to the point clicked?

View source: R/plot_functions.R

guessageR Documentation

which age is closest to the point clicked?

Description

a utility function called by ggbChooseAges().

Usage

guessage(xvec, yvec, click, age)

Arguments

xvec

$rightterm, as given by ggbMakeColumns()

yvec

$lefttterm, as given by ggbMakeColumns()

click

a point given by locator(1)

age

ages present in dataset

Value

the age corresponding to the x,y pair of $rightterm, $lefttterm closest to the point clicked.


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