species.graph {MetaLandSim}R Documentation

Simulate landscape occupation

Description

Given a set of parameters, this function allows to simulate the occupation of an empty landscape, class "metapopulation".

Usage

species.graph(rl, method = 'percentage', parm, nsew = 'none', plotG = TRUE)

Arguments

rl

Object of class "landscape".

method

One of the following (default 'percentage'): click - individually select the patches with occurrence of the species by clicking on the map. Use only for individual landscape simulations. percentage - percentage of the patches to be occupied by the species. number - number of patches to be occupied by the species.

parm

Parameter to specify the species occurrence - either percentage of occupied patches or number of occupied patches, depending on the method chosen.

nsew

'N', 'S', 'E', 'W' or none - point of entry of the species in the landscape. By default set to "none".

plotG

TRUE/FALSE, to show graphic output.

Value

Returns a list, with the following elements:

An additional field, colour, has only graphical purposes.

Author(s)

Frederico Mestre and Fernando Canovas

See Also

rland.graph, simulate_graph, remove.species

Examples


data(rland)

##Creating a 50% occupation in an empty landscape (using the "landscape" dataset):

sp1 <- species.graph(rl=rland, method="percentage", parm=50, nsew="none", plotG=TRUE)

[Package MetaLandSim version 2.0.0 Index]