Learn R Programming

RFOC (version 3.4-14)

Graphics for Spherical Distributions and Earthquake Focal Mechanisms

Description

Graphics for statistics on a sphere, as applied to geological fault data, crystallography, earthquake focal mechanisms, radiation patterns, ternary plots and geographical/geological maps. Non-double couple plotting of focal spheres and source type maps are included for statistical analysis of moment tensors.

Copy Link

Version

Install

install.packages('RFOC')

Monthly Downloads

606

Version

3.4-14

License

GPL (>= 2)

Maintainer

Jonathan Lees

Last Published

February 7th, 2026

Functions in RFOC (3.4-14)

BOXarrows3D

Create a 3D Arrow structure
Beachfoc

Plot a BeachBall Focal Mechanism
PKAM

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

SDR data from the Harvard CMT catalog
HAMMERprojXY

Hammer Projection
EApoint

Equal-area point stereonet
PLTcirc

Circle Plot with Cross Hairs
MapNonDouble

Map moment tensors
GetRake

Calculate Rake angles
JMAT

Vertical Rotation matrix
MomentDist

Distance Between Moment Tensors
MRake

Rake Calculation
GetRakeSense

Get Rake Sense
Pradfoc

Plot P-wave radiation
PROJ3D

Project 3D
PTaxes

Plot P-T axis on CLVD
Preflect

Reflect a pole through to the lower hemisphere
PTXY2

Plot P-T Axes
PlotPlanes

Plot Fault an Auxilliary Planes
PlotTernfoc

Ternary Distribution of focal mechanisms
ROTX

X-axis Rotation Matrix
ROTY

Y-axis Rotation Matrix
addsmallcirc

Small Circle on Stereonet
TP2XYZ

Trend - Dip to XYZ
ShadowCLVD

Plot CLVD focal mechanism
PlotPTsmooth

Plot Smooth PT-axes
addmecpoints

Add points to Focal Mech
TRANmat

Translation Matrix
SVradfoc

Plot SV-wave radiation
ROTZ

Z-axis Rotation Matrix
RectDense

Divide a region into rectangles based on density
TOCART.DIP

Convert to Cartesian
foc.color

Get color of Focal Mechansim
TEACHFOC

Graphical Plot of Focal Mechanism
flipnodal

Flip Nodal Fault Plane
addPTarrows

Add fancy 3D arrows
addPT

Add P-T Axis to focal plot
REFLECT

reflect pole
cross.prod

Vector Cross Product
TapeBase

Tape Base Lines
circtics

Draw circular ticmarks
TOSPHERE.DIP

convert to spherical coordinates
foc.icolor

Get Fault Style
SHradfoc

Plot SH-wave radiation
SDRfoc

Plot a Focal Mechanism from SDR
Wpoint

Plot points on Wulff Stereonet
TOSPHERE

Convert to Spherical Coordinates
focleg

Fault style descriptor
hudson.plot

Hudson Source Type Plot
Z3Darrow

Make a 3D arrow
hudson.net

Hudson Net Plot
pglyph3D

Plot a 3D body on an existing graphic
inverseTAPE

Inverse Moment Tensor
TapePlot

Tape style Lune Plot
imageSCALE

add scale on sice of image
imageP

P-wave radiation pattern
jimbo

Moment Tensors from the Harvard CMT
phong3D

Phong shading for a 3D body
imageSH

P-wave radiation pattern
radiateSH

Plot radiation pattern for SH-waves
pcirc

Circle Plot
imageSV

P-wave radiation pattern
mc2cart

Convert azimuth, dip to Cartesian Coordinates
mijsdr

Moment Tensor to Strike-Dip-Rake
normal.fault

Normal Fault Cartoon
makenet

Equal-Angle Stereonet
net

EqualArea Stereonet
qpoint

Point on Stereonet
printMEC

Print focal mechanism
spherefocgeo

SphereFocGeo
fancyarrows

Make fancy arrows
Wnet

Wulff Stereonet
testrightHAND

Test Right Hand of tensor
ternfocgeo

Ternary Focals
Vmoments

Cartesian Moment Tensors
faultplane

fault plane projection on focal sphere
spline.arrow

Spline Arrow
radSV

Radiation pattern for SV waves
plotMEC

Plot a Focal Mechanism
plotfoc

Plot Focal Radiation Patterns
strikeslip.fault

Strikeslip Fault Cartoon
radiateP

Plot radiation pattern for P-waves
focpoint

add point on focal sphere
ternfoc.point

Plot Ternary Point
forcerighthand

Force Right-Hand System
m2tk

Moment tensor to T-k
makeblock3D

Make a 3D block Structure
nodalLines

Nodal Lines
nipXY

Fault-Slip vector plot
radP

Radiation pattern for P waves
Rotfocphi

Rotate Focal Mechanism
tk2uv

Tk2uv
RFOC-package

Calculates and plot Earthquake Focal Mechanisms
roty3

Rotate about the y axis
RotTP

Rotate T-P axes
radiateSV

Plot radiation pattern for SV-waves
thrust.fault

Thrust Fault Cartoon
rotz3

Rotate about the z axis
SourceType

Moment Tensor Source Type
bang

Angle between two 2D normalized vectors
StrikeDip

Plot Strike Dip Lines
polyfoc

Polt the focal mechanism polygon
alpha95

95 percent confidence for Spherical Distribution
rakelegend

Focal Legend based on rake
getUWfocs

Get UW focals
prepFOCS

Prepare Focals
readCMT

Read Harvard CMT moment
getCMT

Read CMT
egl

Tungurahua Cartesian Moment Tensors
radSH

Radiation pattern for SH waves
to.spherical

Convert Cartesian to Spherical
xsecmanyfoc

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

Plot Non-double Couple Moment
tocartL

Convert to cartesian coordinate
justfocXY

Plot focal mechanism
lowplane

Plot one Fault plane on stereonet
plotmanyfoc

Plot Many Focals
rotateFoc

Rotate Focal Mechanism
pnet

plot stereonet
rotx3

Rotate about the x axis
tosphereL

convert to spherical coordinates
widdenMoments

Cartesian Moment Tensors
CONVERTSDR

Convert Strike-Dip-Rake to MEC structure
Bfocvec

Angles for Ternary plot
FixDip

Fix Dip Angle
FOCangles

Angles for focal planes
AXpoint

Extract Axis pole on Stereonet
CROSSL

Vector Cross Product
AlongGreat

Get Points Along Great Circle