sparkle_fill | R Documentation |
Fill RasterLayer or matrix with small gaps (sparkles) using specs defined in "min_sides" and "fun"
sparkle_fill(x, min_sides = 4, fun = "median", matlon, matlat, ...)
x |
RasterLayer or matrix to fill gaps for |
min_sides |
Number of non NA sides required (e.g. min_sides = 5 means 5 out of a possible 8 pixels directly adjacent to "sparkle" must be non NA) |
fun |
String of function to fill gap. Current options are "mean", "median" and "bilinear" |
matlon |
If x is a matrix, it needs a matrix of latitudes with dim(matlon) == dim(x) |
matlat |
If x is a matrix, it needs a matrix of longitudes with dim(matlat) == dim(x) |
Filled RasterLayer or matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.