clickableImageMapDemo {clickableImageMap} | R Documentation |
clickableImageMapDemo
Description
demo to illustrate how to implement calibrate() and grid.locator() for a numerical matrix. This is just a stub to be replaced by the user's actual program.
Usage
clickableImageMapDemo(
n = 3,
bounds = list(xmin = 0.534, xmax = 0.553, ymin = 0.057, ymax = 0.067),
sleepTime = 0.5
)
Arguments
n |
integer number of values to be edited in matrix m |
bounds |
list of 4 numerical values xmin, xmax, ymin, ymax |
sleepTime |
numeric number of seconds to sleep to avoid potential race condition |
Details
this package emulates edit() but allows full control
over formatting and management of the edited matrix.
sleepTime parameter can be set to nonzero (suggest trying sleepTime=0.5) in case a complicated
graphic causes a race condition evidenced by incomplete redrawing of the window. Too large a value
might cause a noticeable annoying delay in redrawing the window.
Value
returns the updated numerical matrix
Examples
if(interactive()){
m<-clickableImageMapDemo(2,bounds=list(xmin=.534,xmax=.553,ymin=.057,ymax=.067))
}
[Package clickableImageMap version 1.0 Index]