Learn R Programming

geophys (version 1.4-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:

xscale

arbitrary scale

Rview

viewing rotation matrix

BOX

Box coordinates, scaled

AX

XYZ Axis coordinates

Rbox

rotated box

Rax

XYZ rotated axes

PPs

Points along the Box axes

Rp

rotated points

aglyph

3D glyph for plotted norm

Details

Initialize the stress set up.

See Also

stress, PLOTbox, PLOTplane, NORMvec

Examples

Run this code
# NOT RUN {

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