I have a network that I made like this:
structure(list(myfirstcol = c(1L, 2L, 3L, 1L, 2L, 3L, 2L, 3L,
1L), mysecondcol = c(1L, 2L, 3L, 2L, 3L, 2L, 1L, 1L, 3L), value = c(394L,
445L, 83L, 2L, 12L, 19L, 33L, 84L, 12L)), class = "data.frame", row.names = c(NA,
-9L))
I used this code to convert it into a network object
library(GGally)
netval1 <-
network(netmat1_matrix, matrix.type = "edgelist",
ignore.eval = F, names.eval = "value")
I believe my code should create a network from my edgelist and create a tie attribute called value
I'd like to visualize this matrix and set the node colors to dark blue when the number is big and light blue with the number is small
I tried this code
ggnet(netval1, color = "value")
I just get three nodes and three ties and everything is black. Even if I replace color with "blue" or "green", it doesn't effect the chart.