Learn R Programming

RSEIS (version 4.2-4)

SELBUT: Select Buttons

Description

Select buttons interactively.

Usage

SELBUT(OPTS, onoff = 1, ocols = "white", default = "opt")

Value

character list of chosen options.

Arguments

OPTS

character list of buttons

onoff

which buttons are active

ocols

colors for plotting

default

default list of buttons

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

Used in swig. OPtions can be added, subtracted, deleted, or completely filled out based on interactive choice.

See Also

swig

Examples

Run this code

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)

}

Run the code above in your browser using DataLab