tps | R Documentation |
Thin plate spline regression
tps(
.data,
var,
resolution = 0.5,
land_borders = rnaturalearth::ne_countries(scale = "small", returnclass = "sf"),
check_data = TRUE,
z_var = NULL,
z_mode = "independent",
z_ref = NULL,
cpus = 1,
xy_pad = c(xmin = 0, ymin = 0, xmax = 0, ymax = 0),
grid_boundary = NULL,
...
)
.data |
Data frame with spatial and climate data. The following are expected:
|
var |
String with the name of the climate variable to interpolate. |
resolution |
Numeric value with the resolution (degrees) to interpolate. |
land_borders |
Data frame with polygons to represent land borders
(e.g. continents, countries, counties, etc.).
Default: |
check_data |
Boolean flag to indicate whether |
z_var |
String with the name of the variable containing information for elevation. If this is given, then the elevation is used for the interpolation. |
z_mode |
String with the mode in which the elevation should be used:
|
z_ref |
Raster object or path to raster object with grid containing elevation information. For example the ETOPO5 (Earth topography 5 arc minute) data set. |
cpus |
Numeric value with the number of CPUs to use in the computation of the elevations for the interpolation grid. |
xy_pad |
Numeric vector of length 4. The entries should be named as
follow: |
grid_boundary |
Numeric vector of length 4. The entries should be named
as follow: |
... |
Arguments passed on to
|
tibble
object with interpolated values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.