briatte / ggnetwork

Geoms to plot networks with ggplot2
https://briatte.github.io/ggnetwork/
146 stars 28 forks source link

Fixing "color" inconsistency ("ggrepel") and error for nodes=2 #20

Closed mcanouil closed 5 years ago

mcanouil commented 7 years ago

Since both ggplot2 and ggrepel use "colour", a warning occures when using "segment.color".

Fixing an issue in fortify.network for nodes=2, in which case, the matrix/data.frame structure was dropped. Issue solved by using "drop" argument.

Fixing issue in fortify.network when no edges.

briatte commented 5 years ago

Hi @mcanouil

All apologies for letting your PR unanswered for so long – merged, thanks very much!

Same apologies to @trinker for the same reasons — I'll close PR #18 as the one above indeed includes it.