# Graphics for Spherical Distributions and Earthquake Focal Mechanisms

## Documentation for package ‘RFOC’ version 2.0-02

- DESCRIPTION file.
- Overview of user guides and package vignettes; browse directory.
- Code demos. Use demo() to run them.

## Help Pages

A B C E F G I J K L M N P Q R S T W X Z

RFOC-package | Calculates and plot Earthquake Focal Mechanisms

## -- A --

addmecpoints | Add points to Focal Mech
addPT | Add P-T Axis to focal plot
addPTarrows | Add fancy 3D arrows
addsmallcirc | Small Circle on Stereonet
AlongGreat | Get Points Along Great Circle
alpha95 | 95 percent confidence for Spherical Distribution
antipolygon | Fill the complement of a polygon
AXpoint | Extract Axis pole on Stereonet

## -- B --

bang | Angle between two 2D normalized vectors
Beachfoc | Plot a BeachBall Focal Mechanism
Bfocvec | Angles for Ternary plot
BOXarrows3D | Create a 3D Arrow structure

## -- C --

ccw | Counter Clockwise Whorl
circle | circle coordinates
circtics | Draw circular ticmarks
CONVERTSDR | Convert Strike-Dip-Rake to MEC structure
cross.prod | Vector Cross Product
CROSSL | Vector Cross Product

## -- E --

EApoint | Equal-area point stereonet

## -- F --

fancyarrows | Make fancy arrows
faultplane | fault plane projection on focal sphere
FixDip | Fix Dip Angle
foc.color | Get color of Focal Mechansim
foc.icolor | Get Fault Style
focleg | Fault style descriptor
focpoint | add point on focal sphere

## -- G --

getCMT | Read CMT
getjul | Get Julian day
GetRake | Calculate Rake angles
GetRakeSense | Get Rake Sense
getUWfocs | Get UW focals
GreatDist | Distance Along Great Circle Arc

## -- I --

imageP | P-wave radiation pattern
imageSCALE | add scale on sice of image
imageSH | P-wave radiation pattern
imageSV | P-wave radiation pattern
inpoly | Test set of points for inside/outside polygon
inside | Determine if point is inside polygon

## -- J --

JMAT | Vertical Rotation matrix
justfocXY | Plot focal mechanism

## -- K --

KAMCORN | SDR data from the Harvard CMT catalog

## -- L --

Lintersect | Finder intersection of lines
lowplane | Plot one Fault plane on stereonet

## -- M --

makeblock3D | Make a 3D block Structure
makenet | Equal-Angle Stereonet
mc2cart | Convert azimuth, dip to Cartesian Coordinates
meshgrid | Create a mesh grid like in Matlab
mijsdr | Moment Tensor to Strike-Dip-Rake
MRake | Rake Calculation

## -- N --

net | EqualArea Stereonet
nipXY | Fault-Slip vector plot
normal.fault | Normal Fault Cartoon

## -- P --

pcirc | Circle Plot
pglyph3D | Plot a 3D body on an existing graphic
phong3D | Phong shading for a 3D body
PKAM | P and T-axes data from the Harvard CMT catalog
plotfoc | Plot Focal Radiation Patterns
plotmanyfoc | Plot Many Focals
plotMEC | Plot a Focal Mechanism
PlotPlanes | Plot Fault an Auxilliary Planes
PlotPTsmooth | Plot Smooth PT-axes
PlotTernfoc | Ternary Distribution of focal mechanisms
PLTcirc | Circle Plot with Cross Hairs
pnet | plot stereonet
polyfoc | Polt the focal mechanism polygon
Pradfoc | Plot P-wave radiation
Preflect | Reflect a pole through to the lower hemisphere
prepFOCS | Prepare Focals
printMEC | Print focal mechanism
PROJ3D | Project 3D

## -- Q --

qpoint | Point on Stereonet

## -- R --

radiateP | Plot radiation pattern for P-waves
radiateSH | Plot radiation pattern for SH-waves
radiateSV | Plot radiation pattern for SV-waves
radP | Radiation pattern for P waves
radSH | Radiation pattern for SH waves
radSV | Radiation pattern for SV waves
RectDense | Divide a region into rectangles based on density
REFLECT | reflect pole
RFOC | Calculates and plot Earthquake Focal Mechanisms
rotateFoc | Rotate Focal Mechanism
Rotfocphi | Rotate Focal Mechanism
RotTP | Rotate T-P axes
ROTX | X-axis Rotation Matrix
rotx3 | Rotate about the x axis
ROTY | Y-axis Rotation Matrix
roty3 | Rotate about the y axis
ROTZ | Z-axis Rotation Matrix
rotz3 | Rotate about the z axis

## -- S --

SDRfoc | Plot a Focal Mechanism from SDR
SHradfoc | Plot SH-wave radiation
spherefocgeo | SphereFocGeo
spline.arrow | Spline Arrow
StrikeDip | Plot Strike Dip Lines
strikeslip.fault | Strikeslip Fault Cartoon
SVradfoc | Plot SV-wave radiation

## -- T --

TEACHFOC | Graphical Plot of Focal Mechanism
ternfoc.point | Plot Ternary Point
ternfocgeo | Ternary Focals
thrust.fault | Thrust Fault Cartoon
to.spherical | Convert Cartesian to Spherical
TOCART | Convert to Cartesian coordinates
TOCART.DIP | Convert to Cartesian
tocartL | Convert to cartesian coordinate
tojul | Julian Day
TOSPHERE | Convert to Spherical Coordinates
TOSPHERE.DIP | convert to spherical coordinates
tosphereL | convert to spherical coordinates
TP2XYZ | Trend - Dip to XYZ
TRANmat | Translation Matrix

## -- W --

Wnet | Wulff Stereonet
Wpoint | Plot points on Wulff Stereonet

## -- X --

xprod | Vector Cross Product
xsecmanyfoc | Plot Focal Mechs at X-Y position on cross sections

## -- Z --

Z3Darrow | Make a 3D arrow