Learn R Programming

clickableImageMap (version 1.0)

pullDown: pullDown

Description

generate and insert a matrix, acting as a pull down menu, into a gtable object

Usage

pullDown(gtab, row, focus)

Value

returns a list whose components are the generated matrix and the gtable object

Arguments

gtab

a gtable object

row

integer target row number within the gtable

focus

Boolean if TRUE add emphasis to matrix cell

Examples

Run this code
if(interactive()){
load("data/x_gtab.RData")
load("data/x_rows.RData")
pullDownRow<-which(names(x_rows)=="pullDownRow")
message<-"select a new value from the pull down menu: "
pd<-pullDown(x_gtab,pullDownRow,grepl("pull down",message))
}

Run the code above in your browser using DataLab