frag.graph.plot {archeofrag} | R Documentation |
Plot a fragmentation graph
Description
A function to plot the graph made by the archeofrag
package.
Usage
frag.graph.plot(graph, layer.attr, ...)
Arguments
graph |
An |
layer.attr |
Character. The name of the vertices attribute giving the layer of each fragment. |
... |
Optional arguments sent to |
Details
This function is a wrapper for the plot.igraph
method for igraph objects. The layout is computed using the fruchterman-reingold algorithm, with some changes as a function of the value of the "frag_type" graph attribute.
For graphs including similarity relations, igraph
' component_wise
layout modifier is applied.
For graphs with connection and similarity relationships, the edges for connection relations are coloured in green.
For graphs with connection relationships only and two layers, the nodes from the two layers are located based on their layer in the upper and the lower part of the plot.
Value
Returns NULL
and plot the graph.
Author(s)
Sebastien Plutniak <sebastien.plutniak at posteo.net>
See Also
plot.igraph, component_wise, layout_with_fr
Examples
g <- frag.simul.process(n.components=20, vertices=50, disturbance=.15)
frag.graph.plot(g, "layer")