I'm trying to change the colors of the edges. Currently the graph displays as follows
While the edges are colored according to the graph property "Polarität" (polarity) , i'd like to switch it up from the default ggplot red and blue color scheme. I'm stumped on how to do this.
Thanks in Advance
ggraph <- ggraph(cog_tidy, layout = 'nicely',) +
theme_graph()+
scale_colour_brewer(palette = "Dark2") +
geom_edge_link2(
aes(end_cap = circle(6, "pt"), edge_color = Polarität ,width=Gewichtung),
arrow = arrow(
angle = 10,
length = unit(0.1, "inches"),
ends = "last",
type = "closed"
)
)+
geom_node_point( aes(size = Gradzentralität ,color = Kategorie), show.legend = TRUE) +
geom_node_text(aes(label = label), repel=TRUE, position = "identity", size=2) +
scale_edge_width(range = c(0.1, 1))