SELBUT | R Documentation |
Select buttons interactively.
SELBUT(OPTS, onoff = 1, ocols = "white", default = "opt")
OPTS |
character list of buttons |
onoff |
which buttons are active |
ocols |
colors for plotting |
default |
default list of buttons |
Used in swig. OPtions can be added, subtracted, deleted, or completely filled out based on interactive choice.
character list of chosen options.
Jonathan M. Lees<jonathan.lees@unc.edu>
swig
if(interactive()){
STDLAB <- c("DONE", "QUIT", "zoom.out", "zoom.in", "SELBUT",
"FILT","UNFILT", "PSEL", "SGRAM", "WLET", "SPEC", "XTR" )
onoff = rep(0, length(STDLAB))
onoff[1:5] <- 1
SELBUT(STDLAB, onoff=onoff)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.