thomasp85 / ggraph

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

algorythmn is arranging circles in wrong manner #360

Open Eliman925 opened 10 months ago

Eliman925 commented 10 months ago

I am drawing ciclepack layout by encoding colours

ggraph(graph, layout = "circlepack", weight = size ) + geom_node_circle(aes(fill = as.factor(color), group = size)) + scale_fill_identity() +coord_fixed()

Screenshot 2024-01-28 at 2 01 51 AM

However, the largest value (1) in the largest subplot (A) is assigned as black dot in the middle (1) replacing a yellow circle in the middle which itself goes together with the black dots in the outer layer (2)

thomasp85 commented 9 months ago

Can you provide a reproducible example. In the code you shared I don't know the nature of graph so I can't test it on my own computer