Learn R Programming

⚠️There's a newer version (3.4-10) of this package.Take me there.

RFOC (version 2.0-02)

Graphics for Spherical Distributions and Earthquake Focal Mechanisms

Description

Graphics for statistics on a sphere, as applied to geological fault data, crystalogaphy, earthquake focal mechanisms, radiation patterns, ternary plots and geographical/geological maps.

Copy Link

Version

Install

install.packages('RFOC')

Monthly Downloads

267

Version

2.0-02

License

GPL

Maintainer

Jonathan Lees

Last Published

October 20th, 2011

Functions in RFOC (2.0-02)

imageP

P-wave radiation pattern
GetRakeSense

Get Rake Sense
PKAM

P and T-axes data from the Harvard CMT catalog
focleg

Fault style descriptor
mc2cart

Convert azimuth, dip to Cartesian Coordinates
BOXarrows3D

Create a 3D Arrow structure
EApoint

Equal-area point stereonet
qpoint

Point on Stereonet
plotmanyfoc

Plot Many Focals
Lintersect

Finder intersection of lines
circle

circle coordinates
strikeslip.fault

Strikeslip Fault Cartoon
TRANmat

Translation Matrix
GetRake

Calculate Rake angles
makeblock3D

Make a 3D block Structure
focpoint

add point on focal sphere
RectDense

Divide a region into rectangles based on density
Z3Darrow

Make a 3D arrow
nipXY

Fault-Slip vector plot
MRake

Rake Calculation
FixDip

Fix Dip Angle
CROSSL

Vector Cross Product
PROJ3D

Project 3D
TP2XYZ

Trend - Dip to XYZ
RFOC-package

Calculates and plot Earthquake Focal Mechanisms
alpha95

95 percent confidence for Spherical Distribution
ROTX

X-axis Rotation Matrix
AlongGreat

Get Points Along Great Circle
inside

Determine if point is inside polygon
plotfoc

Plot Focal Radiation Patterns
CONVERTSDR

Convert Strike-Dip-Rake to MEC structure
TOCART.DIP

Convert to Cartesian
roty3

Rotate about the y axis
Wnet

Wulff Stereonet
Beachfoc

Plot a BeachBall Focal Mechanism
TOSPHERE.DIP

convert to spherical coordinates
plotMEC

Plot a Focal Mechanism
pglyph3D

Plot a 3D body on an existing graphic
addPT

Add P-T Axis to focal plot
xsecmanyfoc

Plot Focal Mechs at X-Y position on cross sections
xprod

Vector Cross Product
makenet

Equal-Angle Stereonet
Preflect

Reflect a pole through to the lower hemisphere
addsmallcirc

Small Circle on Stereonet
Bfocvec

Angles for Ternary plot
thrust.fault

Thrust Fault Cartoon
addPTarrows

Add fancy 3D arrows
rotateFoc

Rotate Focal Mechanism
PlotPTsmooth

Plot Smooth PT-axes
JMAT

Vertical Rotation matrix
addmecpoints

Add points to Focal Mech
ccw

Counter Clockwise Whorl
PLTcirc

Circle Plot with Cross Hairs
Pradfoc

Plot P-wave radiation
polyfoc

Polt the focal mechanism polygon
KAMCORN

SDR data from the Harvard CMT catalog
radSV

Radiation pattern for SV waves
mijsdr

Moment Tensor to Strike-Dip-Rake
GreatDist

Distance Along Great Circle Arc
foc.color

Get color of Focal Mechansim
inpoly

Test set of points for inside/outside polygon
ROTZ

Z-axis Rotation Matrix
tocartL

Convert to cartesian coordinate
PlotPlanes

Plot Fault an Auxilliary Planes
radSH

Radiation pattern for SH waves
TOCART

Convert to Cartesian coordinates
pnet

plot stereonet
ROTY

Y-axis Rotation Matrix
radiateSH

Plot radiation pattern for SH-waves
meshgrid

Create a mesh grid like in Matlab
normal.fault

Normal Fault Cartoon
AXpoint

Extract Axis pole on Stereonet
printMEC

Print focal mechanism
ternfocgeo

Ternary Focals
pcirc

Circle Plot
antipolygon

Fill the complement of a polygon
phong3D

Phong shading for a 3D body
TEACHFOC

Graphical Plot of Focal Mechanism
rotz3

Rotate about the z axis
tojul

Julian Day
radiateSV

Plot radiation pattern for SV-waves
net

EqualArea Stereonet
fancyarrows

Make fancy arrows
imageSH

P-wave radiation pattern
TOSPHERE

Convert to Spherical Coordinates
getjul

Get Julian day
getUWfocs

Get UW focals
SVradfoc

Plot SV-wave radiation
StrikeDip

Plot Strike Dip Lines
cross.prod

Vector Cross Product
imageSCALE

add scale on sice of image
imageSV

P-wave radiation pattern
Rotfocphi

Rotate Focal Mechanism
circtics

Draw circular ticmarks
REFLECT

reflect pole
justfocXY

Plot focal mechanism
getCMT

Read CMT
Wpoint

Plot points on Wulff Stereonet
SHradfoc

Plot SH-wave radiation
tosphereL

convert to spherical coordinates
RotTP

Rotate T-P axes
spherefocgeo

SphereFocGeo
PlotTernfoc

Ternary Distribution of focal mechanisms
to.spherical

Convert Cartesian to Spherical
radP

Radiation pattern for P waves
SDRfoc

Plot a Focal Mechanism from SDR
prepFOCS

Prepare Focals
ternfoc.point

Plot Ternary Point
lowplane

Plot one Fault plane on stereonet
faultplane

fault plane projection on focal sphere
foc.icolor

Get Fault Style
radiateP

Plot radiation pattern for P-waves
rotx3

Rotate about the x axis
spline.arrow

Spline Arrow
bang

Angle between two 2D normalized vectors