View source: R/clickableImageMap.R
highlightOneCell | R Documentation |
highlight one cell of grob matrix in gtab
highlightOneCell(gtab, row, col, currentPick)
gtab |
a gtable object |
row |
integer row number of cell to highlight |
col |
integer col number of cell to highlight |
currentPick |
Boolean TRUE if this is the most recently chosen cell and we are to apply special highlighting |
returns gtab, a gtable object
if(interactive()){
load("data/x_mtab.RData")
load("data/x_clickCoord.RData")
highlightOneCell(x_mtab,x_clickCoord[1,"x"],x_clickCoord[1,"y"],FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.