View source: R/clickableImageMap.R
construct_entire_gtab | R Documentation |
construct the main gtable into which grobs will be inserted
construct_entire_gtab(m, rows, message, clickCoord)
m |
a matrix |
rows |
numerical vector defining rows for inserting grobs into main gtable |
message |
character string message to display in annunciator grob of gtable |
clickCoord |
numerical matrix of 2 columns, each row contains x and y coords of a mouse click |
returns a list whose components are
m.pullDown component m of return value of pullDown()
cal.pullDown return value of calibrate()
cal.m return value of calibrate()
gtab return value of annunciator()
if(interactive()){
load("data/x_m.RData")
load("data/x_rows.RData")
load("data/x_clickCoord.RData")
gtab<-construct_entire_gtab(x_m,x_rows,"x_message",x_clickCoord)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.