FF.graph {FinNet}R Documentation

Easily represent a firm-firm (FF) network using the package igraph

Description

Create an object of class igraph from the package igraph using a FF matrix of class financial_matrix using all the default aesthetic options

Usage

FF.graph(x, aesthetic = c("simple", "nice"))

Arguments

x

A matrix-like object produced by FF and related functions.

aesthetic

Choose a pre-set for the graph's look. Either 'simple' or 'nice' (see Details).

Details

This function does not allow for any of the additional arguments that can be passed to FF.graph.custom.

Value

A network in the desired format

Loops and values

Loops will be allowed if at least one of the matrix's diagonal entries is not zero. The igraph will be valued if at least one entry of the matrix is neither zero nor one.

Instead, if aesthetic is set to 'simple':

Otherwise, if aesthetic is set to 'nice':

Author(s)

Telarico, Fabio Ashtar

See Also

FF.net FF.net.custom FF.graph.custom

Examples

# Create a nice graph representation of the binary FF of
# Berkshire Hataway's holdings based on common ownership
data("firms_BKB")
x <- FF.naive.ownership(firms_BKB)
FF.graph(x = x, aesthetic = 'nice')


[Package FinNet version 0.1.2 Index]