View source: R/utils_shapefile.R
shapefile_surface | R Documentation |
This function creates a surface plot from an interpolated spatial model, with options to customize plot appearance, grid resolution, and color palette.
shapefile_surface(
model,
curve = TRUE,
nx = 300,
ny = 300,
xlab = "Longitude (UTM)",
ylab = "Latitude (UTM)",
col = custom_palette(c("darkred", "yellow", "forestgreen"), n = 100),
...
)
model |
An interpolated spatial object (e.g., from |
curve |
Logical; if TRUE, a contour plot is generated ( |
nx |
Integer; the number of grid cells in the x-direction. Default is 300. |
ny |
Integer; the number of grid cells in the y-direction. Default is 300. |
xlab |
Character; label for the x-axis. Default is "Longitude (UTM)". |
ylab |
Character; label for the y-axis. Default is "Latitude (UTM)". |
col |
A color palette function for the surface plot. Default is a custom palette from dark red to yellow to forest green. |
... |
Additional parameters to pass to |
A surface plot showing spatially interpolated data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.