bb: Create a plot of a beachball

Description Usage Arguments Value Note See Also Examples

Description

Create a plot of a beachball

Usage

1
2
bb.sdr(strike, dip, rake, filename = NULL, load.results = TRUE,
  verbose = TRUE, ...)

Arguments

strike,dip,rake

numeric; the strike, dip, and rake of the moment tensor, in degrees

filename

character; the name of the file to create

load.results

logical; should the resuling file be loaded for plotting, etc?

verbose

logical; should warnings and messages be given?

...

additional parameters

Value

An object of class mtbb

Note

bb.sdr allows creation a beach ball without deviatoric components by specifying the strike, dip, and rake of the earthquake.

obspy-mopad will rearrange the angles if they don't make sense!

See Also

mtbb-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
#
# Create "beachball" representations with
#       ** Strike, Dip, Rake **
# of earthquake moment tensor
#
b1 <- bb.sdr(10,1,10) # succeeds
b2 <- bb.sdr(1,10,10) # values are rearranged internally
all.equal(b1, b2)

# change output
bb.sdr(10,1,10, filename='beachball') # writes to 'beachball.svg'

# Visualize:
bb <- bb.sdr(45,80,10)
plot(c(100, 250), c(300, 450), type = "n", xlab = "", ylab = "", asp=1)
rasterImage(b1[['image']], 100, 400, 150, 450)
rasterImage(bb[['image']], 170, 370, 220, 320)

## End(Not run)

abarbour/beachball documentation built on May 10, 2019, 4:06 a.m.