Learn R Programming

clickableImageMap (version 1.0)

exitClick: exitClick

Description

test position of mouse click to see if user wants to exit

Usage

exitClick(bounds, y)

Value

Boolean TRUE if y is within bounds

Arguments

bounds

list of numeric xmin xmax ymin ymax defining screen target for exit

y

numeric vector of x and y cursor position

Details

use in conjunction with defineBounds()

Examples

Run this code
if(interactive()){
load("data/x_bounds.RData")
load("data/x_y.RData")
exitClick(x_bounds,x_y)
}

Run the code above in your browser using DataLab