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 2 months ago

henriquesposito commented 4 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 2 months 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.