| prepare_soap | R Documentation |
Create necessary output for dsm modelling using soap smoother.
prepare_soap( data, contour = NULL, polygon_pred = NULL, ratio_simplify = 1e-04, N = 23 )
data |
data.frame containing at least 3 columns. Among those columns it must have |
contour |
Land contour of the study area where the soap will be implemented (optionnal). Must be a Spatial or sf object containing polygons defining land contour (default is NULL). |
polygon_pred |
Polygon defining the area where the soap will be implemented. Either a Spatial or sf object containing polygon. |
ratio_simplify |
Correspond to the 'keep' argument of |
N |
Number of knots per row and column (default 23). |
sf_cropped_NEA : data.frame (given if polygon_pred is NULL).
bnd : list of list delimiting soap area. Compatible with gam.
knots : data.frame containing longitude and latitude of konts.
df_cropped_data : data.frame corresponding to data without the points outside of bnd.
gg_cropped_data : gg object that synthetised information on the soap process which has been made.
sf_ocean : sf object containging the contour of the study area where knots are placed.
This function uses autocruncher, a function created by Simon Wood and improved by David L. Miller
(https://github.com/dill/soap_checker/blob/master/autocrunch.R).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.