Learn R Programming

archeofrag (version 1.2.0)

frag.relations.by.layers: Summary of the connection relationships between fragments within and between spatial units.

Description

Return a matrix with the number of relationships within and between spatial units (e.g., layers).

Usage

frag.relations.by.layers(graph, layer.attr)

Value

A square matrix with the number of connection relationships within and between spatial units.

Arguments

graph

An igraph object.

layer.attr

Character. The name of the vertices attribute giving the spatial unit of each fragment.

Author

Sebastien Plutniak <sebastien.plutniak at posteo.net>

Details

This function is a useful method to summarise the distribution of connection relationships within and between spatial units (e.g., layers).

Examples

Run this code
g <- frag.simul.process(n.components=20, vertices=50, disturbance=.15)
frag.relations.by.layers(g, "layer")

Run the code above in your browser using DataLab