Open mkarikom opened 5 years ago
Hi @briatte,
I'm having the same problem with geom_edges. I currently have 64 nodes and 108 edges, and when I try to use aes to color edges in a specific fashion, I'm asked to have a data length of 172. Please let me know what I should do.
Create an igraph object with five vertices and two edges:
Check the number of nodes and edges:
The following code works (it should not work, notice that the number of color values in geom_nodes() is wrong, there should be five values, but 7 are given):
See plot here.
If the correct number of values for
geom_nodes(aes(color=<five values>))
is used instead, an error is generated:Notice that
geom_nodes
seems to require thatcolor
=nodes + edges
, why is this?Is there a way around this?
If there are 7 colors passed, how does it decide which 5 to use for the node colors?