stocnet / manynet

Many Ways to Make, Manipulate, and Map Myriad Networks
https://stocnet.github.io/manynet/
Other
12 stars 0 forks source link

Issues with mapping "tie_measures" with `graphr()` #81

Closed henriquesposito closed 1 month ago

henriquesposito commented 2 months ago

The issue appears to occur when colouring using tie measures

ison_brandes %>%
  add_tie_attribute("tiecolour",
                    c("A", "B", "A", "B", "B", "B", "B", "B", "B", "B", "B", "B")) %>%
  add_tie_attribute("weight", c(rep(1:6, 2))) %>% 
  graphr(edge_color = "tiecolour", edge_size = "weight")
ison_brandes %>%
  tidygraph::activate("edges") %>% 
  tidygraph::mutate(tiecolour = c("A", "B", "A", "B", "B", "B", "B", "B", "B", "B", "B", "B"),
                    weight = rep(1:6, 2)) %>%
  graphr(edge_color = "tiecolour", edge_size = "weight")
jhollway commented 1 month ago

I don't see the difference in the example. Perhaps this bug has been addressed in some earlier version? I'll close the issue, but feel free to reopen with another MRE or an explanation if this is still an issue.