Learn R Programming

RSEIS (version 3.6-8)

YPIX: PICK Buttons for swig

Description

defining functions for swig

Usage

YPIX(nh, g) WPIX(nh, g) NOPIX(nh, g) REPIX(nh, g) PickWin(nh, g) pADDPIX(nh, g, phase) Ppic(nh, g) Spic(nh, g) Apic(nh, g) POLSWITCH(nh, g, dir) Pup(nh, g) Pnil(nh, g) Pdown(nh, g) FILLPIX(nh, g) RIDPIX(nh, g) SEEPIX(nh, g) ROT.RT(nh, g) JustV(nh, g) JustE(nh, g) JustN(nh, g)

Arguments

nh
waveform list for RSEIS
g
plotting parameter list for interactive program
phase
phase name (P, S, A, etc...)
dir
vertical up, down or nil

Value

as it is returned to the main code swig. Choices for returning to swig are: break, replot, revert, replace, donothing, exit.

Details

Buttons can be defined on the fly.

See Also

swig, XTR

Examples

Run this code

## Not run: 
# 
# 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)
# JJ  <-  swig(GH, sel=1:10, STDLAB=STDLAB)
# 
# ## End(Not run)


Run the code above in your browser using DataLab