Skip to content

Nothing plotted or lines and dots are Grey with manual_scale when a named vector is used as the input. #5669

Closed
@AlexanderCasper

Description

@AlexanderCasper

Ref to: #4087

Try:

colors_named_vector <- c(
  red = "red",
  blue = "blue",
  green = "green"
)


library(ggplot2)

ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
  geom_point() %>% 
  scale_color_manual(values=colors_named_vector)

it seems as if it has not been fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions