View source: R/clickableImageMap.R
pullDown | R Documentation |
generate and insert a matrix, acting as a pull down menu, into a gtable object
pullDown(gtab, row, focus)
gtab |
a gtable object |
row |
integer target row number within the gtable |
focus |
Boolean if TRUE add emphasis to matrix cell |
returns a list whose components are the generated matrix and the gtable object
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))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.