How to change the colour of nodes?
问题 I'm trying to change the colour of the nodes dependent upon the month. At the moment, I've done it this way which isn't concise at all and wouldn't work for large datasets. Is there a better way of doing it? Data <- read.csv(.....) library(igraph) MartixData <- as.matrix(Data) NetworkData <- graph.adjacency(MatrixData, mode="directed", weighted=TRUE) V(NetworkData) V(NetworkData)$month <- c("June", "July", "July", "February", "September", "June", "September", "June", "December", "September",