Learn R Programming

clickableImageMap (version 1.0)

highlightOneCell: highlightOneCell

Description

highlight one cell of grob matrix in gtab

Usage

highlightOneCell(gtab, row, col, currentPick)

Value

returns gtab, a gtable object

Arguments

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

Examples

Run this code
if(interactive()){
load("data/x_mtab.RData")
load("data/x_clickCoord.RData")
highlightOneCell(x_mtab,x_clickCoord[1,"x"],x_clickCoord[1,"y"],FALSE)
}

Run the code above in your browser using DataLab