Learn R Programming

geophys (version 1.2-1)

stressSETUP: Setup Stress Box

Description

Setup default stress box, plane information and normal vector 3d plotting glyph

Usage

stressSETUP(P1=c(.2, 1,1,0 ), P2=c(1, .1,1,0), P3=c(1, 1,.4,0), xscale=30)

Arguments

P1
4-vector, point 1
P2
4-vector,point 2
P3
4-vector,point 3
xscale
scale factor for plotting

Value

  • List:
  • xscalearbitrary scale
  • Rviewviewing rotation matrix
  • BOXBox coordinates, scaled
  • AXXYZ Axis coordinates
  • Rboxrotated box
  • RaxXYZ rotated axes
  • PPsPoints along the Box axes
  • Rprotated points
  • aglyph3D glyph for plotted norm

Details

Initialize the stress set up.

See Also

stress, PLOTbox, PLOTplane, NORMvec

Examples

Run this code
S = stressSETUP()
pstart()

PLOTbox(S$Rax, S$Rbox, axcol= 'green', boxcol= 'purple')

pstart()

PLOTplane(S$Rp, planecol="brown")
PLOTbox(S$Rax, S$Rbox, axcol= 'green', boxcol= 'purple')


NORMvec(S$PPs, S$xscale, S$Rview, S$aglyph, add=TRUE)

Run the code above in your browser using DataLab