Skip to content

PiotrTymoszuk/graphExtra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphExtra

Manipulation and plotting accessories for igraph objects

Basic usage

The package offers few functional tools that may help to integrate great tools of igraph in tidyverse-styled analysis pipelines:

  • as_iGraph(): generates igraph 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 user
  • prune_degree(), select_vertices(), and prune_vertices() allow for selection or removal of graph vertices based on a degree cutoff or logical expressions
  • split_vertices() splits a graph into subgraphs by levels of one or more vertex attributes; this may be especially interesting for detailed analyses of communities
  • get_vertex_attributes() and set_vertex_attributes() let the user fetch and set multiple vertex attributes with a data frame or a tibble
  • add_community() merges the community information obtained with one of the clustering tools offered by igraph package with vertex attributes
  • summary() computes a bunch of common vertex importance statistics such as degree, betweenness, and hub score
  • plot() overwrites the respective default method to generate ggplot-compatible graphics for igraph objects
  • neighbor_graph() and neighbor_attr() extract the neighborhood of a vertex of interest and the neighborhood attributes, respectively

Installation

You may easily fetch the package via devtools:

devtools::install_github('PiotrTymoszuk/graphExtra')

Terms of use

The package is available under a GPL-3 license.

Contact

The package maintainer is Piotr Tymoszuk.

Acknowledgements

Many thanks to authors, maintainers and contributors of the tidyverse evironment, and packages igraph and ggnetwork.

About

Manipulation and plotting accessories for `igraph` objects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages