Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@malcolmbarrett

Description

@malcolmbarrett

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions