fromIgraph produce an interactive network from an igraph object.

fromIgraph(G, ...)

Arguments

G

an igraph object.

...

Any network_rd3 argument.

References

Escobar, M. and Martinez-Uribe, L. (2020) Network Coincidence Analysis: The netCoin R Package. Journal of Statistical Software, 93, 1-32. doi: 10.18637/jss.v093.i11 .

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Value

This function returns a network_rd3 object. If the 'dir' attribute is specified, the function creates a folder in the computer with an HTML document named index.html which contains the produced graph. This file can be directly opened with your browser and sent to a web server to work properly.

Examples

g <- igraph::make_ring(10) fromIgraph(g)
#> Title: Ring graph #> #> Nodes(10): #> name #> 1 #> 2 #> 3 #> 4 #> 5 #> 6 #> ... #> #> Links(10): #> Source Target #> 1 2 #> 2 3 #> 3 4 #> 4 5 #> 5 6 #> 6 7 #> ... #>