plot_res | R Documentation |
This function is useful to display the maximum and minimum resolution that you want to test with the block_partition function. Note that if the resolution to be tested is very fine, the plot display may take a long time.
plot_res(r, res_mult)
r |
SpatRaster. A raster layer, preferably a layer of environmental variables to be used |
res_mult |
numeric. Maximum or minimum resolution to be tested. |
A plot with the original raster overlapped by a grid with the resolution used
## Not run:
f <- system.file("external/somevar.tif", package = "flexsdm")
r <- terra::rast(f)
r <- r$CFP_1
plot_res(r, res_mult = 100)
plot_res(r, res_mult = 200)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.