View source: R/createRasterLayer.R
createRasterLayer | R Documentation |
This function creates a raster spatial raster layer from a dataframe and a bounding box.
createRasterLayer(
dfr,
col,
bbox,
nx = 500,
ny = 500,
strCRS = get_proj4string("WGS84"),
linear = TRUE,
extrap = FALSE,
duplicate = "error"
)
dfr |
|
col |
|
bbox |
|
nx |
|
ny |
|
strCRS |
|
linear |
|
extrap |
|
duplicate |
|
Uses akima::interp()
, sp::SpatialPixelsDataFrame()
, and raster::raster()
.
raster raster layer
TODO: this function should be revised to work with sf
methods, not sp
methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.