epicontacts
epicontacts copied to clipboard
Request manual colour nodes
I tried to manually colour nodes in the contact visualisation graphic, however this hasn't been very intuitive to do (see below). In this case, I also had to adjust the order of the colours (blue, pink) by trial and error, i was not able to specifically assign pink to female and blue to male.
plot(x, node_color = "sex", col_pal = colorRampPalette(c("pink", "blue")), node_shape = "sex", shapes = c(male = "male", female = "female"), label = FALSE)
Would it be possible to do something more intuitive for this, where you can sepifically assign a colour to a node by the variable of the node - something like this:
plot(x, node_color = "sex", col_pal = c(male = "blue", female ="pink"), node_shape = "sex", shapes = c(male = "male", female = "female"), label = FALSE)