draw.vario {RGeostats}R Documentation

Elementary function for representing the variogram

Description

Elementary function for representing the variogram

Usage

draw.vario(x, ivar = 1, jvar = 1, idir0 = 0, xlim=NA, ylim=NA,
	   npairdw = 0, npairpt = 0, flag.norm = FALSE, flag.vars=TRUE,
	   as.cov = FALSE, pch = NA, lty = NA, col = NA, lwd = NA, cex = NA,
	   c0col = 1, c0lwd = 1, c0lty = 2, c0cex = 1,
	   pos = 3, offset = 1, inches=0.025, add = FALSE, digit=NA, varline = TRUE,
           opt.varname=0, cex.varname=1, pos.varname=c(1,0),
           pos.legend = 0, ...)

Arguments

x

The vario-class structure which gives the calculation directions and extensions.

ivar

The first variable in the pair of variables for which the model must be represented.

jvar

The second variable in the pair of variables for which the model must be represented.

idir0

Rank of the direction of interest or 0 for all directions.

xlim

An array of two values giving the minimum and maximum values along the horizontal axis.

ylim

An array of two values giving the minimum and maximum values along the vertical axis.

npairdw

Representation of each lag by a symbol according to the following choice:

  • 0 No representation

  • 1 Each lag is represented by a circle, whose area is proportional to the number of pairs

  • 2 Each lag is represented by a circle with a constant size

npairpt

Display the number of pairs. The number of pairs is indicated for one out of npairpt points. If npairpt is set to 0, no number of pairs is displayed.

flag.norm

If TRUE, the variogram is normalized by the variable variance before it is represented.

flag.vars

When TRUE, the environment is represented.

as.cov

If TRUE, the structure is represented as a covariance; otherwise it is represented as a variogram.

pch

Only used when npairpt=TRUE. Array containing the symbol types (per direction). If the number of items does not match the number of directions, the symbol type is set to 1.

lty

Array containing the line types (per direction). If the number of items does not match the number of directions, the line type is set to 1.

col

Array containing the line colors (per direction). If the number of items does not match the number of directions, the line color is set to 1.

lwd

Array containing the line widths (per direction). If the number of items does not match the number of directions, the line width is set to 1.

cex

Array containing the symbol size (per direction). If the number of items does not match the number of directions, the symbol size is set to 1.

c0col

Color used for the axes

c0lwd

Width used for the axes

c0lty

Type of the lines used for the axes

c0cex

Size of the symbol representing Cij(0)

pos

Position of the labels with respect to the symbol representing the variogram lag (only used when npairpt > 0).

  • 1 : label is located below the symbol

  • 2 : label is located on the left of the symbol

  • 3 : label is located above the symbol

  • 4 : label is located on the right of the symbol

offset

When variogram is represented with npairpt > 0, this value gives the offset of the label from the symbol representing the variogram lag (in fractions of a character width).

inches

Give the size of the symbol for representing the lag with the largest number of pairs.

add

When FALSE a new page is initialized before the graphic. Otherwise, the graphic is overlayed on the already existing page.

digit

When specified (and when npairpt>0), the written text (usually the number of pairs, but more generally the contents of the 'sw' field of the vario-class) is written with 'digit' decimal values.

varline

Horizontal line at the sample variance/covariance level This option is automatically discarded in case of generalized variograms.

opt.varname

The name of the variable(s) used for calculating the experimental (simple or cross) variogram is displayed. For cross-variograms, the two variables names are separated by the ";" character. This option is only available is the names have been registered in the vario-class structure.

This option can be set to:

  • 0 If no variable name must be displayed

  • 1 If the variable name must be displayed only on simple variograms

  • 2 If the variable names must be written for simple and cross-variograms

cex.varname

Size of the font used for writing the variable name(s)

pos.varname

This argument is used to position the anchor of the variable name(s) to be written. It is provided as an array with two values. Each element may vary between 0 and 1.

  • The first element gives the location of the anchor along the horizontal axis.

  • The second element gives the location of the anchor along the vertical axis.

The location of the anchor with respect to the contents of the string is calculated as a function of the anchor location:

  • to the left of the first character of the string when the first argument is 0

  • to the right of the last character of the string when the first argument is 1

  • to the bottom of the string when the second argument is 0

  • to the top of the string when the second argument is 1

pos.legend

Position of the legend. For more information, see legend.locate.

...

Additional arguments passed to define.scenes or legend.vario. Other arguments are passed to lines, symbols or text.


[Package RGeostats version 14.0.10 Index]