Description Usage Arguments Value Note See Also Examples
Create a plot of a beachball
1 2 |
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 |
An object of class mtbb
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!
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.