View source: R/clickableImageMap.R
exitClick | R Documentation |
test position of mouse click to see if user wants to exit
exitClick(bounds, y)
bounds |
list of numeric xmin xmax ymin ymax defining screen target for exit |
y |
numeric vector of x and y cursor position |
use in conjunction with defineBounds()
Boolean TRUE if y is within bounds
if(interactive()){
load("data/x_bounds.RData")
load("data/x_y.RData")
exitClick(x_bounds,x_y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.