draw.gradient {RGeostats}R Documentation

Represent the gradients

Description

Internal function for representing the gradient components

Usage

draw.gradient(x, y, gx, gy, col=NA, grad.size = 1.,  opt.grad=1,
              flag.grad=TRUE, flag.grad.pt=TRUE, ...)

Arguments

x

Array giving the coordinates of the samples along X

y

Array giving the coordinates of the samples along Y

gx

Array giving the gradient components of the samples along X

gy

Array giving the gradient components of the samples along Y

col

Color assigned to the Gradient representation

grad.size

Scale factor to convert a gradient unit into a field unit.

opt.grad

Type of representation (only for gradients):

  • 1 Arrows

  • 2 Segments representing the gradient direction and length

flag.grad

When TRUE, the information (gx,gy) define the gradients When FALSE, the information (gx,gy) define the tangents

flag.grad.pt

Whne TRUE, the location of the information is represented.

...

Other parameters passed to function arrows, segments or points

Details

When all dimensions of the gradient are zero, the sample is represented using the characteristics provided by the user, but with a pattern representation fixed to pch=10.


[Package RGeostats version 11.1.2 Index]