twApply3DMesh: twApply3DMesh In twMiscRgl: tw 3D utility functions

Description

Applying FUN over cube-grid of x,y,z values

Usage

 ``` 1 2 3 4 5 6 7 8 9 10``` ```twApply3DMesh(x, y = NULL, z = NULL, FUN = "+", argsFUN = list(), dims = 5, knotSpacing = c(quantile = "quantile", midquantile = "midquantile", all = "all", equidistant = "equidistant"), nSample = 0, label = deparse(substitute(FUN)), ...) ```

Arguments

 `x` range of x,y and z ordinate see `xyz.coords` `y` `z` `FUN` `argsFUN` `dims` integer vector of length 1 or 3: number of points `knotSpacing` method for calulating the knots quantile`cutQuantiles` for breaks of intervals holding about equal number of points, includes edges (default) midquantile`cutQuantiles` for midpoints of intervals holding about equal number of points, by excluding the edges the sample is represented better alltake all the provided xyz coordinates (overwrites nKnots) equidistantcover the range of dimension i by `nKnots` equidistant points `nSample` number of points to sample from xyz in addition to grid Results will be provided in dataframe of four coloumns with attribute "sample". `label` label of the z-variable, stored in attribute label `...` further arguments passed to FUN

Details

note that knotSpacing default is "quantile", which differs from the 2D version

the edges are not representative of the sample, but the grid spans the full space of the sample

Value

list of class twApply2DMesh with itmes

• mesh:matrix with each row one coordinate and two columns corresponding to x and y

• fval: the two dimensional array of evaluated function values

• sample: data frame with four columns corresponding to points additional to the grid

• label: argument label describing fval

• rangeOrig: list with items x, and y with the range of the original sample

Author(s)

Thomas Wutzler

`plot.twApply3DMesh`
`twPairs`, twMisc