Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggraph doesn't respect ggplot2.discrete.colour and friends #382

Open
malcolmbarrett opened this issue Dec 29, 2024 · 0 comments
Open

ggraph doesn't respect ggplot2.discrete.colour and friends #382

malcolmbarrett opened this issue Dec 29, 2024 · 0 comments

Comments

@malcolmbarrett
Copy link
Contributor

malcolmbarrett commented Dec 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant