I believe this is because scale_edge_color_discrete() is an alias for scale_edge_colour_hue() and thus calls ggplot2::scale_colour_hue() instead of ggplot2::scale_colour_discrete()
|
scale_edge_colour_hue <- function(..., h = c(0, 360) + 15, c = 100, l = 65, h.start = 0, |
|
direction = 1, na.value = "grey50", aesthetics = "edge_colour") { |
|
scale_colour_hue(..., h = h, c = c, l = l, h.start = h.start, |
|
direction = direction, na.value = na.value, aesthetics = aesthetics) |
|
} |
I haven't checked if other scales have this problem of ignoring the ggplot2 options
I believe this is because
scale_edge_color_discrete()is an alias forscale_edge_colour_hue()and thus callsggplot2::scale_colour_hue()instead ofggplot2::scale_colour_discrete()ggraph/R/scale_edge_colour.R
Lines 23 to 27 in 9a0bfb1
I haven't checked if other scales have this problem of ignoring the ggplot2 options