Learn R Programming

RSEIS (version 1.0-1)

PLOT.MATN: plot a matrix of several seismograms

Description

Matrix of several seismograms

Usage

PLOT.MATN(ascd, tim = 1, dt = 1, WIN = c(0, 1), labs = "", notes = notes, sfact = 1, LOG = "", COL = 'red', add = 1, AXES = FALSE, units = NULL)

Arguments

ascd
N by K matrix of seismograms where
tim
time values fo x-axis
dt
sample interval, seconds
WIN
vector, time window for zoom
labs
vector of labels for each panel
notes
vector of notes for each panel
sfact
scaling factor, 1=window, 2=trace
LOG
log x-axis
COL
vecotr of colrs or indeces to colors
add
logical, TRUE=add to existing plot
AXES
logical, TRUE=add axes
units
label for units of Y-axis

Value

  • graphical side effects

Details

plots a matrix of seismograms that each have the same starting time

See Also

PICK.GEN

Examples

Run this code
dt = 0.001

 t = seq(0, 6, by=0.001)

thefreqs = seq(from=10, to=100, by=10)
theamps =  runif(length(thefreqs))

#   % sample rate = 1000 Hz, 0.001 seconds 601 samples
 x = NULL

for(i in 1:length(thefreqs))
{
x = cbind(x, theamps[i]*sin(2*pi*thefreqs[i]*t))


}

PLOT.MATN(x,  dt = dt)

Run the code above in your browser using DataLab