construct_entire_gtab: construct_entire_gtab

View source: R/clickableImageMap.R

construct_entire_gtabR Documentation

construct_entire_gtab

Description

construct the main gtable into which grobs will be inserted

Usage

construct_entire_gtab(m, rows, message, clickCoord)

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

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

Examples

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


clickableImageMap documentation built on May 29, 2024, 8:10 a.m.