Learn R Programming

clickableImageMap (version 1.0)

construct_entire_gtab: construct_entire_gtab

Description

construct the main gtable into which grobs will be inserted

Usage

construct_entire_gtab(m, rows, message, clickCoord)

Value

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()

Arguments

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

Examples

Run this code
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)
}

Run the code above in your browser using DataLab