fortify.igraph: Function for converting an igraph object into the correct...

Description Usage Arguments Examples

View source: R/fortify-net.R

Description

Function for converting an igraph object into the correct format for use with geomnet

Usage

1
2
## S3 method for class 'igraph'
fortify(model, data = NULL, group = NULL, ...)

Arguments

model

A network object of class "igraph".

data

NULL - not used in this function

group

character. Used for facetting. If you wish to facet on a network variable provide the name of that variable here.

...

not used in this function

Examples

1
2
3
4
5
6
# class igraph (igraph, igraphdata packages)
library(igraph)
data(blood, package = "geomnet")
blood.igraph <- graph_from_data_frame(d = blood$edges, 
   directed = TRUE, vertices = unique(blood$vertices[, 1:3]))
fortify(blood.igraph)

geomnet documentation built on May 29, 2017, 9:10 a.m.