fortify.edgedf: Function for converting a network edge list in data frame...

Description Usage Arguments Examples

View source: R/fortify-net.R

Description

Function for converting a network edge list in data frame form into the correct format for use with geomnet

Usage

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

Arguments

model

A network edgelist of class "edgedf". See as.edgedf. Can contain edge variables as well.

data

Data frame containing network node list and other node information. First column should contain node ids.

group

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

...

not used in this function

Examples

1
2
3
data(blood)
fortify(as.edgedf(blood$edges), blood$vertices)
fortify(as.edgedf(blood$edges), blood$vertices, group = "Ethnicity")

geomnet documentation built on Nov. 26, 2020, 5:07 p.m.