Graphing a network in igraph or other packages in R that has each node dependent on covariates?
Graphing a network in igraph or other packages in R that has each node dependent on covariates? I currently have a network in R, available in an adjacency matrix, edgelist, and network format, that I would like to plot based on the covariates of each of the nodes. I have three covariates, age , class , and score , with age being 0 or 1, class ranging from 1 to 50, and score from 0 to 100. I am wondering which packages in R might facilitate plotting nodes and their network edges with node colors depending on class , the symbol of a node depending on age , and the size of a node dependent on the score ? Do there exists such methods in igraph ? Thanks! age class score age class score class age score igraph 1 Answer 1 Here is an example using igraph . Since you do not provide any data, I illustrate with some randomly generated data. igraph library(igraph) set.seed(12) g = erdos.renyi.game(10,0.33) V(...