Description Usage Arguments Value Examples
View source: R/Landscape_Methods.R
Wrapper function to create a Landscape object using SpatialPolygons and dataframe. The SpatialPolygons object and the data.frame have to contain the same number of polygons and row (row ID is polygons ID).
1 | loadLandscape(sp, data)
|
sp |
a SpatialPolygons object designing the landscape |
data |
a data.frame containing fields (polygons) information. Row names as fields ID, column names as sources | neutral | receptors (for a given field, the value is 1 for the type of the field (source or neutral or receptor), otherwise 0). |
A SpatialPolygonsDataFrame object
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.