Learn R Programming

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

RFOC (version 2.0-00)

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-00

License

GPL

Maintainer

Jonathan Lees

Last Published

May 26th, 2011

Functions in RFOC (2.0-00)

qpoint

Point on Stereonet
getjul

Get Julian day
CONVERTSDR

Convert Strike-Dip-Rake to MEC structure
RectDense

Divide a region into rectangles based on density
AXpoint

Extract Axis pole on Stereonet
GreatDist

Distance Along Great Circle Arc
REFLECT

reflect pole
Bfocvec

Angles for Ternary plot
BOXarrows3D

Create a 3D Arrow structure
ROTX

X-axis Rotation Matrix
Beachfoc

Plot a BeachBall Focal Mechanism
SHradfoc

Plot SH-wave radiation
CROSSL

Vector Cross Product
imageSCALE

add scale on sice of image
JMAT

Vertical Rotation matrix
GetRake

Calculate Rake angles
Wpoint

Plot points on Wulff Stereonet
addPT

Add P-T Axis to focal plot
KAMCORN

SDR data from the Harvard CMT catalog
Z3Darrow

Make a 3D arrow
MRake

Rake Calculation
circle

circle coordinates
TOCART.DIP

Convert to Cartesian
GetRakeSense

Get Rake Sense
Wnet

Wulff Stereonet
nipXY

Fault-Slip vector plot
ROTZ

Z-axis Rotation Matrix
addPTarrows

Add fancy 3D arrows
TOCART

Convert to Cartesian coordinates
fancyarrows

Make fancy arrows
focpoint

add point on focal sphere
TP2XYZ

Trend - Dip to XYZ
FixDip

Fix Dip Angle
foc.color

Get color of Focal Mechansim
EApoint

Equal-area point stereonet
Lintersect

Finder intersection of lines
polyfoc

Polt the focal mechanism polygon
PKAM

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

Get UW focals
focleg

Fault style descriptor
net

EqualArea Stereonet
prepFOCS

Prepare Focals
spherefocgeo

SphereFocGeo
thrust.fault

Thrust Fault Cartoon
phong3D

Phong shading for a 3D body
plotMEC

Plot a Focal Mechanism
TRANmat

Translation Matrix
Rotfocphi

Rotate Focal Mechanism
Pradfoc

Plot P-wave radiation
mc2cart

Convert azimuth, dip to Cartesian Coordinates
normal.fault

Normal Fault Cartoon
TOSPHERE.DIP

convert to spherical coordinates
ROTY

Y-axis Rotation Matrix
AlongGreat

Get Points Along Great Circle
circtics

Draw circular ticmarks
PlotPlanes

Plot Fault an Auxilliary Planes
fmod

Floating point remainer function
SDRfoc

Plot a Focal Mechanism from SDR
antipolygon

Fill the complement of a polygon
PlotTernfoc

Ternary Distribution of focal mechanisms
TEACHFOC

Graphical Plot of Focal Mechanism
pglyph3D

Plot a 3D body on an existing graphic
faultplane

fault plane projection on focal sphere
ternfocgeo

Ternary Focals
SVradfoc

Plot SV-wave radiation
strikeslip.fault

Strikeslip Fault Cartoon
justfocXY

Plot focal mechanism
PROJ3D

Project 3D
PLTcirc

Circle Plot with Cross Hairs
TOSPHERE

Convert to Spherical Coordinates
PlotPTsmooth

Plot Smooth PT-axes
meshgrid

Create a mesh grid like in Matlab
imageSV

P-wave radiation pattern
printMEC

Print focal mechanism
radSH

Radiation pattern for SH waves
RFOC-package

Calculates and plot Earthquake Focal Mechanisms
StrikeDip

Plot Strike Dip Lines
radiateSH

Plot radiation pattern for SH-waves
roty3

Rotate about the y axis
addsmallcirc

Small Circle on Stereonet
radSV

Radiation pattern for SV waves
alpha95

95 percent confidence for Spherical Distribution
to.spherical

Convert Cartesian to Spherical
bang

Angle between two 2D normalized vectors
radP

Radiation pattern for P waves
foc.icolor

Get Fault Style
tojul

Julian Day
ccw

Counter Clockwise Whorl
addmecpoints

Add points to Focal Mech
ternfoc.point

Plot Ternary Point
imageSH

P-wave radiation pattern
plotmanyfoc

Plot Many Focals
inside

Determine if point is inside polygon
pnet

plot stereonet
cross.prod

Vector Cross Product
tosphereL

convert to spherical coordinates
makeblock3D

Make a 3D block Structure
pcirc

Circle Plot
RotTP

Rotate T-P axes
lowplane

Plot one Fault plane on stereonet
plotfoc

Plot Focal Radiation Patterns
radiateSV

Plot radiation pattern for SV-waves
mijsdr

Moment Tensor to Strike-Dip-Rake
getCMT

Read CMT
makenet

Equal-Angle Stereonet
inpoly

Test set of points for inside/outside polygon
radiateP

Plot radiation pattern for P-waves
imageP

P-wave radiation pattern
rotx3

Rotate about the x axis
rotateFoc

Rotate Focal Mechanism
xsecmanyfoc

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

Convert to cartesian coordinate
Preflect

Reflect a pole through to the lower hemisphere
rotz3

Rotate about the z axis
xprod

Vector Cross Product