Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

foc.color

Get color of Focal Mechansim


Description

Based on the rake angle, focal styles are assigned an index and assigned a color by foc.color

Usage

foc.color(i, pal = 0)

Arguments

i

index to list of focal rupture styles

pal

vector of colors

Details

Since the colors used by focal programs are arbitrary, this routines allows one to change the coloring scheme easily.

foc.icolor returns an index that is used to get the color associated with that style of faulting

Value

Color for plotting, either a name or HEX RGB

Author(s)

Jonathan M. Lees <jonathan.lees@unc.edu>

See Also

foc.icolor

Examples

fcolors=c("DarkSeaGreen", "cyan1","SkyBlue1" , "RoyalBlue" ,"GreenYellow","orange","red")
      foc.color(3, fcolors)

RFOC

Graphics for Spherical Distributions and Earthquake Focal Mechanisms

v3.4-6
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Keehoon Kim [ctb]
Initial release
2018-01-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.