Learn R Programming

geomnet (version 0.3.1)

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

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
data(blood)
fortify(as.edgedf(blood$edges), blood$vertices)
fortify(as.edgedf(blood$edges), blood$vertices, group = "Ethnicity")
# }

Run the code above in your browser using DataLab