cjvanlissa / tidySEM

54 stars 7 forks source link

using more than one graph modifier function removes the effect of the previous #24

Closed mattansb closed 3 years ago

mattansb commented 3 years ago
edges(g) %>% 
  color_pos("green") %>% 
  .["color"]
#>   color
#> 1 green
#> 2 green
#> 3 black
#> 4 green
#> 5 green
#> 6 green  

edges(g) %>% 
  color_pos("green") %>% 
  color_neg("red") %>% 
  .["color"]
#>   color
#> 1 black
#> 2 black
#> 3   red
#> 4 black
#> 5 black
#> 6 black
mattansb commented 3 years ago

I haven't tested this with other "aesthetics", so this might not be the only one where this happens..

mattansb commented 3 years ago

Thanks! (Note you have browser() on in that commit..)