View source: R/05.network&graph.R
FF.graph | R Documentation |
igraph
Create an object of class igraph
from the package igraph
using a FF matrix of class financial_matrix
using all the default aesthetic options
FF.graph(x, aesthetic = c("simple", "nice"))
x |
A matrix-like object produced by |
aesthetic |
Choose a pre-set for the graph's look. Either |
This function does not allow for any of the additional arguments that can be passed to FF.graph.custom
.
A network in the desired format
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'
:
The width of the ties is 1
;
The colour of the ties is #b4b4b4
(Philippine Silver);
The size of the nodes is 5
;
The colour of the nodes is #081677
(Gentian blue).
Otherwise, if aesthetic
is set to 'nice'
:
The width of the ties is 1
;
The colour of the ties is a grey scale reflecting tie strength if the graph is valued, otherwise it is #b4b4b4
(Philippine Silver);
The size of the nodes reflects their capitalisation
if all firms have data on it and ranges between 1
and 5
, otherwise it is 5
for all nodes;
The colour of the nodes reflects their sector
if all firms have data on it is taken from a built-in palette, otherwise it is #081677
(Gentian blue).
Telarico, Fabio Ashtar
FF.net FF.net.custom FF.graph.custom
# 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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.