varmapR: Run the CCG 'varmap' Program to Create a Variogram Map.

Description Usage Arguments Value Examples

Description

varmapR creates variogram maps for analysis of spatial continuity. The number of variogram maps produced is fixed at 1.

Usage

1
2
3
varmapR(data, vars, regular = 0, grid = c(0, 0, 0, 0, 0, 0),
  xyz = c("x", "y"), nlag = c(50, 50, 0), dlag = c(5, 5, 5),
  minpair = 5, standardize = 0, type = c(1, 1, 1), debug = FALSE)

Arguments

data

Data frame with value and optional weight and category columns.

vars

Character vector, column names in data for transformation.

regular

Scalar integer either 1 or 0. 1: regular grid; 0: scattered values.

grid

Numeric vector of length 6. Defines the grid parameters if regular is 1. The parameter are , in order, number of x, y, and z nodes in the grid and size of x, y, and z nodes in the grid.

xyz

Character vector of lenght 2 for 2D samples or 3 for 3D samples. If regular is 0, xyz gives the x, y, and z coordinate column names of data.

nlag

Numeric vector of length 3 for number of lags in each direction.

dlag

Numeric vector of length 3 for size of lag in each direction.

minpair

Scalar numeric. Minimum pairs per lag to report a result.

standardize

Scalar integer either 1 or 0. 1: standardize the sill.

type

Numeric vector length 3 for the tail, head, and variogram type.

debug

Scalar boolean. If TRUE don't delete temporary system files.

Value

A data frame suitable for plotting with ggplot2::geom_raster.

Examples

1
2
3
test <- unscoreR(samples_2d, c("thk", "accum"))
data <- varmapR(test$data, vars=c("NS_thk"), minpair = 1,
  nlag = c(100, 100, 1), dlag = c(20, 20, 1))

truemoid/rgslib documentation built on May 30, 2019, 2:14 p.m.