Learn R Programming

MetaLandSim (version 0.2)

plot_graph: Graphical display of the landscape

Description

Plots the landscape graph, with or without the species occupation (respectively lists returned by species.graph or rland.graph) and with or without the links between patches.

Usage

plot_graph(rl, species, links)

Arguments

rl
Object of class 'landscape' (species=FALSE) or 'metapopulation' (species=TRUE).
species
TRUE/FALSE, TRUE if 'x' is of class 'metapopulation' or 'FALSE' if x is of class 'landscape'.
links
TRUE/FALSE, show links between connected patches.

Value

  • Graphical display of the landscape.

See Also

rland.graph, species.graph

Examples

Run this code
data(rland)
data(occ.landscape)

#Without the species occupancy:
plot_graph(rl=rland, species=FALSE, links=FALSE)

#With the species occupancy:
plot_graph(rl=occ.landscape, species=TRUE, links=FALSE)

Run the code above in your browser using DataLab