vbin.grid | R Documentation |
Generate a bined matrix given a 2D random field.
vbin.grid(x, y, z, nx, ny, FUN = mean, na = NA)
x, y, z |
a random field with location vectors (x, y) and value vector z. They must have the same length. |
nx, ny |
the number of bins in x and y dimension. |
FUN |
a function to calculate statistics in each 2D bin. |
na |
Replacemnet for NA value in matrix bins. |
a matrix with row (column) names being the center points of x (y) dim, and with cell value being the aggregate statistics calculated by FUN.
seq_approximate
, vbin
, vbin.range
vbin.grid(1:20, 20:1, runif(20), nx=5, ny=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.