twApply2DMesh: twApply2DMesh

Description Usage Arguments Details Value Author(s) See Also

View source: R/plotTwMisc.R

Description

Applying FUN over x-y grid that is adapted to the density of x,y values.

Usage

1
2
3
4
twApply2DMesh(x, y = NULL, FUN = "+", argsFUN = list(), 
    dims = 20, knotSpacing = c(midquantile = "midquantile", 
        quantile = "quantile", all = "all", equidistant = "equidistant"), 
    label = deparse(substitute(FUN)), ...)

Arguments

x

range of x and y ordinate see xy.coords.

y
FUN
argsFUN
dims

integer vector of length 1 or 2: number of points in each dimension

knotSpacing

method for calulating the knots

midquantile

cutQuantiles for midpoints of intervals holding about equal number of points, by excluding the edges the sample is represented better (default)

quantile

cutQuantiles for breaks of intervals holding about equal number of points, includes edges

all

take all the provided xyz coordinates (overwrites dims)

equidistant

cover the range of dimension i by dims equidistant points

label
...

further arguments passed to FUN

Details

Note that knotSpacing default is "midquantile", so x and y do not specify the real coordinates (only with knotSpacing=all), but dims coordinates are calculated based on the density Note that with "midquantile", the grid does not cover the full range but the grid spacing is representative of the marginal distributions

Value

list of class twApply2DMesh with itmes

Author(s)

Thomas Wutzler

See Also

plot.twApply2DMesh

twPairs, twMisc


twMisc documentation built on May 2, 2019, 6:11 p.m.