estdim | R Documentation |
Estimate the raster dimensions of a scattered 2D signal based on its pixel coordinates.
estdim(x, tol = 1e-6)
x |
A numeric matrix or data frame where each column gives the pixel coordinates for a different dimension. Only 2 or 3 dimensions are supported if the coordinates are irregular. Otherwise, any number of dimensions are supported. |
tol |
The tolerance allowed when estimating the resolution (i.e., pixel sizes) using |
A numeric vector giving the estimated raster dimensions.
Kylie A. Bemis
co <- expand.grid(x=1:12, y=1:9)
co$x <- jitter(co$x)
co$y <- jitter(co$y)
estdim(co)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.