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(): generatesigraphobjects 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 expressionssplit_vertices()splits a graph into subgraphs by levels of one or more vertex attributes; this may be especially interesting for detailed analyses of communitiesget_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 byigraphpackage 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 forigraphobjectsneighbor_graph()andneighbor_attr()extract the neighborhood of a vertex of interest and the neighborhood attributes, respectively
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.