View source: R/clickableImageMap.R
decode | R Documentation |
map the screen coordinates to a cell of a matrix
decode(y, cal, rcnames)
y |
parsed return value of grid.locator() |
cal |
return value of calibrate() |
rcnames |
Boolean if TRUE matrix has row names and col names |
returns an integer vector of the index of a cell in a matrix or returns -1 if rcnames is TRUE and vector y is not within valid range
if(interactive()){
load("data/x_y.RData")
load("data/x_rcnames.RData")
load("data/x_cal2.RData")
decode(x_y,x_cal2,x_rcnames)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.