-
Notifications
You must be signed in to change notification settings - Fork 115
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
Edge-guide control #25
Comments
"Me too". Was about to file this as well, here's my example in case it's helpful: library(ggraph)
library(igraph)
hairball <- graph_from_data_frame(highschool)
E(hairball)$year <- as.character(E(hairball)$year)
## cannot turn of the colour guide
ggraph(hairball, layout = 'kk') +
geom_edge_link(aes(colour = year)) + guides(colour = FALSE)
I ran into this because I have a lot of edges I want to illustrate colours for, I will convert the values to a continuous scale for now. Thanks! |
The colour scale for edges is called edge_colour. Can I get you to test whether |
Oops, it does work: library(ggraph)
library(igraph)
hairball <- graph_from_data_frame(highschool)
E(hairball)$year <- as.character(E(hairball)$year)
## edge_colour guide
ggraph(hairball, layout = 'kk') +
geom_edge_link(aes(edge_colour = year)) + guides(edge_colour = FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not able to control edge-color guides, whether legends or colorbars, and whether the color is set to an edge attribute or ..index.. A few examples:
The text was updated successfully, but these errors were encountered: