Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request manual colour nodes #90

Open
annikawendland opened this issue Oct 11, 2018 · 0 comments
Open

Request manual colour nodes #90

annikawendland opened this issue Oct 11, 2018 · 0 comments

Comments

@annikawendland
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant