briatte / ggnet

Network visualization with ggplot2
https://briatte.github.io/ggnet/
194 stars 33 forks source link

Legend not appearing #25

Closed jrosen48 closed 7 years ago

jrosen48 commented 7 years ago

Thanks for creating such an excellent package, it was just recommended to me by a friend.

In case this is the preferred place for this type of question, I just posted a question about a color legend not appearing on Stack Overflow. If you'd prefer I delete or or the other, please just let me know.

Thanks, Josh

briatte commented 7 years ago

Hi @jrosen48

Asking on StackOverflow is perfectly fine.

I have provided an answer to your question over there. Basically, the trick is to turn your vertex attribute into a character string before plotting.

HTH!

ghost commented 7 years ago

TY! And your blog is great, like the R notes!