thomasp85 / ggraph

Grammar of Graph Graphics
https://ggraph.data-imaginist.com
Other
1.08k stars 116 forks source link

circle packing is disordered, when data has a larger hierarchy. #305

Closed Mpaperlee closed 2 years ago

Mpaperlee commented 2 years ago

I have use ggraph and ggsubplot create circle packing plots with my phylogenetic data. It works great when my phylogenetic tree is small. However, it doesn't work when my tree is larger. when my tree is small image when larger image

the Circles in lower hierarchies are too big.

please could you tell me how to fix it thanks

Mpaperlee commented 2 years ago

I have saw an issue in https://github.com/d3/d3-hierarchy/issues/74 . it fixed in D3.js. But my javascript is poor. How can I fix it in ggraph

JGippet commented 2 years ago

Hi @thomasp85, I have the same problem with ggraph. This issue has also been reported 2 ya on stackoverflow (https://stackoverflow.com/questions/65151687/circle-packing-with-ggraph-circles-in-lower-hierarchies-are-too-big).

I tried to find a way around it but I couldn't... please help!!!

All the best