0

It's my first time working with igraph - so please excuse my basic questions. I'm doing a stakeholder analysis and have different actors on different administrative scales. I'm trying to plot my network in a hierarchical way, because I want to show the interaction between administrative boundaries. My vertices have the attributes "name", "Label" and "Scale". I want to plot the graph with Scale as the layers.

edges <- data.table::fread("Master_edges.csv")

nodes <- data.table::fread("Master_nodes.csv")

V(g1_2)$name <- nodes$Label

V(g1_2)$Scale <-nodes$Scale

l <- layout_with_sugiyama(layers=V(g1_2)$Scale) #this is wrong, how do I define the layers?

plot(g1_2, layout=l, vertex.label=V(g1_2), vertex.color=NA)

Also I have different types of edges - how can I plot the different edge-types in different plots?

nomimi
  • 1

0 Answers0