Manipulation and plotting accessories for igraph
objects
The package offers few functional tools that may help to integrate great tools of igraph
in tidyverse-styled analysis pipelines:
as_iGraph()
: generatesigraph
objects from a wide range of similarity and distance matrices as well as numeric matrices and data frames with similarity or correlation metrics defined by the userprune_degree()
,select_vertices()
, andprune_vertices()
allow for selection or removal of graph vertices based on a degree cutoff or logical expressionsget_vertex_attributes()
andset_vertex_attributes()
let the user fetch and set multiple vertex attributes with a data frame or a tibbleadd_community()
merges the community information obtained with one of the clustering tools offered byigraph
package with vertex attributessummary()
computes a bunch of common vertex importance statistics such as degree, betweenness, and hub scoreplot()
overwrites the respective default method to generateggplot
-compatible graphics forigraph
objects
You may easily fetch the package via devtools
:
devtools::install_github('PiotrTymoszuk/graphExtra')
The package is available under a GPL-3 license.
The package maintainer is Piotr Tymoszuk.
Many thanks to authors, maintainers and contributors of the tidyverse evironment, and packages igraph and ggnetwork.