Description Usage Arguments Value See Also Examples
Constructors for S4 objects, containing a matrix (gv) and coordinates (x and y), or (xb and yb).
Essentially, the gv slot is equivalent to the matrix returned by base::outer, over the x and y values.
DGrid is for integer inputs and CGrid is for numeric inputs.
The StepGrid version is for step functions, where xb and yb represent breakpoints.
The gv values are evaluated using the midpoints.
The xgrid.hdim function and related functions, can be used to produce arrays in higher dimensions.
1 2 3 4 5 6 7 | DGrid (x = 1:nrow (gv), y = 1:ncol (gv), gv)
CGrid (x = 1:nrow (gv), y = 1:ncol (gv), gv)
StepGrid (xb = 0:nrow (gv) + 0.5, yb = 0:ncol (gv) + 0.5, gv)
dgrid (sf=`*`, xlim, ylim=xlim, ..., cf, iterate=FALSE, x, y)
cgrid (sf=`*`, xlim, ylim=xlim, ..., n=8, cf, iterate=FALSE, x, y)
stepgrid (sf=`*`, xlim, ylim=xlim, ..., n=8, cf, iterate=FALSE, xb, yb)
|
sf |
A suitable function. |
xlim, ylim |
Length-two integer (for DGrid) or numeric (for CGrid/SGrid) vectors. |
n |
Integer vector of length one or two, the number or rows and columns. |
iterate |
Logical, if true, evaluate the function with one bin/point, at a time. Note that this is not done in an efficient way, you'll get a faster result if you vectorize your function. |
cf |
A function of two vectors, used to combine x and y into a single object. |
x, y |
Integer or numeric vectors. |
xb, yb |
Same as x and y, but one longer, for breakpoints/endpoints. |
gv |
A matrix of grid values, equivalent to the result of sf. |
... |
Currently, ignored. |
An DGrid, CGrid or SGrid object.
dgrid.hdim, cgrid.hdim, xgrid.hdim
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.