``` library(plotly) library(ggnet) library(network) library(sna) library(ggplot2) # random graph net = rgraph(10, mode = "graph", tprob = 0.5) net = network(net, directed = FALSE) net %v% "phono" = ifelse(letters[1:10] %in% c("a", "e", "i"), "vowel", "consonant") p <- ggnet2(net, color = "phono") ggplotly(p) ``` Legend results in `(1,contant,19,9) and (1,vowel,19,9)` instead of `contant and vowel`