This is a test version of Biostars. For the public version, visit https://www.biostars.org.
ggraph circlepack layout

Hello stars,

Having an igraph object (tbl_graph) how do I make nodes sized and colored with pre-defined sizes and colors (below)?

ggraph(my_igraph_obj, layout = 'circlepack') +
geom_node_circle() +
theme_void()


node_sizes
[1] 30.00000000 9.12942183 0.16883015 0.05513073 0.03187076 4.90354422 0.80153406 20.81378519 19.20983917

node_colors
[1] "#c66a19" "#20f98d" "#3c1d8c" "#f9564a" "#8803bc" "#ed821e" "#13b26b" "#c15234" "#ba0e1a"

Couldn't figure out playing with available options

Thank you!

ggraph circle packing r

Hello chunderbay!

We believe that this post does not fit the main topic of this site.

This is not really a bioinformatics but rather a general R question. Please ask at StackExchange.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.