powered by
Function for converting a network edge list in data frame form into the correct format for use with geomnet
# S3 method for edgedf fortify(model, data, group = NULL, ...)
A network edgelist of class "edgedf". See as.edgedf. Can contain edge variables as well.
"edgedf"
as.edgedf
Data frame containing network node list and other node information. First column should contain node ids.
character. Used for facetting. If you wish to facet on network variable provide the name of that variable here.
not used in this function
# 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