Pick3 | R Documentation |
Picking functions for swig
Pick3(nh, g)
nh |
waveform list for RSEIS |
g |
plotting parameter list for interactive program |
Buttons can be defined on the fly.
Multiple picks on a panel
The return value depends on the nature of the function as it is returned to the main code swig. Choices for returning to swig are: break, replot, revert, replace, donothing, exit.
Jonathan M. Lees<jonathan.lees@unc.edu>
swig, PickWin
if(interactive()){
###### interactive addition of button in swig
library(RSEIS)
MYFUNC<-function(nh, g)
{
print("pressed MYFUNC")
d = data.frame(list(stations=nh$STNS, components=nh$COMPS))
print(d)
g$action = "replot"
invisible(list(global.vars=g))
}
STDLAB=c("DONE", "QUIT", "SELBUT" , "MYFUNC" )
data(GH, package='RSEIS')
JJ = RSEIS::swig(GH, sel=1:10, STDLAB=STDLAB)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.