Learn R Programming

ggCompNet (version 0.1.0)

fortify.adjmat: Function for converting a network adjacency matrix into the correct format for use with geomnet

Description

Function for converting a network adjacency matrix into the correct format for use with geomnet

Usage

"fortify"(model, data = NULL, ...)

Arguments

model
An adjacency matrix of class "adjmat".
data
not used in this function
...
not used in this function

Examples

Run this code
library(ggCompNet)
data(emon, package = "network")
adjmat <- geomnet::as.adjmat(network::as.matrix.network.adjacency(emon$MtSi))
str(adjmat)
ggCompNet:::fortify.adjmat(adjmat)

Run the code above in your browser using DataLab