Description Usage Arguments Value See Also Examples
Create a SpatialPointsDataFrame
representing the centroid of each
population, with attributes: pop
(population name), time
(the
time step), and N
(the mean population size).
1 |
mp |
A RAMAS Metapop .mp file containing simulation results. |
coords |
An object containing population coordinates. This object can be
created by using |
start |
The value of the first timestep. If timesteps are not in
increments of 1, it may be best to use |
s_p4s |
(Optional) The coordinate reference system of the source
cordinates given in |
t_p4s |
(Optional) The target coordinate reference system to which
coordinates will be projected, if supplied. These can be supplied as a
|
A SpatialPointsDataFrame
.
1 2 3 4 5 | mp <- system.file('example.mp', package='mptools')
r <- system.file('example_001.tif', package='mptools')
coords <- mp2xy(mp, r, 9.975)
spdf <- mp2sp(mp, coords, start=2000)
spdf
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.