Description Usage Arguments Value Examples
This combines the predicted values's output with the corresponding spatial point data frame to generate the grid surface. Please use this function with the output spatial point data frame generated by genRaster
1 | points2Raster(spoints, tarVar, dx = 2000, dy = 2000)
|
spoints |
Spatial point data frame. This data frame is based on the output by the function, genRaster with its predicted or interpolated value field. |
tarVar |
Field name such as pollutant concentration used to make the grid. |
dx |
Size of resolution along x coordinate |
dy |
Size of resolution along y coordinate |
Convert the points into Raster
1 2 3 | data("spointspre")
praster=points2Raster(spointspre,"pre_m",dx=2000,dy=2000)
raster::plot(praster)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.