write_gephi: Create Gephi File from graph object

Description Usage Arguments Details Author(s) References Examples

View source: R/write_gephi.R

Description

Create Gephi File from graph object

Usage

1
2
3
4
5
6
7
write_gephi(
  graph,
  node_attributes,
  directory = getwd(),
  name = Sys.Date(),
  node_names = NULL
)

Arguments

graph

An igraph object

node_attributes

A vector or data frame of different metrics describing the nodes (ie, modularity, degree).

directory

Character vector specifyig directory for file output. Defaults to current working directory.

name

A name for the output. Defaults to the current date.

node_names

A vector of node labels. By default searches global environemnt for a vector titled "colnames".

Details

This function simplifies the use of the igraph to .gexf conversion in the rgexf package.

Author(s)

Brandon Vaughan

References

Bastian M., Heymann S., Jacomy M. (2009). Gephi: an open source software for exploring and manipulating networks. International AAAI Conference on Weblogs and Social Media.

https://gephi.org/

Examples

1
2
attributes = cbind.data.frame(colMeans(EVC) , colMean(STR), colMeans(MODULE))
write_gephi(graph=group_avg_graph, attributes, directory = "C:/Users/Abnormally-Distributed/Documents/", name="Group_Average_Graph")

abnormally-distributed/rsfcNet documentation built on March 8, 2020, 5:32 p.m.