Skip to content
Prev 383397 / 398502 Next

ggraph and changing colors in geom_node_arc_bar

Hello,

Try a scale_fill_gradient*, there are several.


l + geom_node_arc_bar(aes(fill = depth)) +
   scale_fill_gradient(low = "gray80", high = "gray20") +
   coord_fixed() +
   theme(legend.position = "none")


This will map increasing values of the 'fill' aesthetics to colors 
between those limits, 'gray80' (lighter) and 'gray20' (darker).


Hope this helps,

Rui Barradas

?s 18:34 de 23/04/20, Monica Palaseanu-Lovejoy escreveu: