I am trying to draw a plot in which the colors of the points are red, green, blue for 3 groups and colors of the associated labels are darkred, darkgreen, darkblue.
I tried the following code, but the dark colors are not used.
library(ggplot2)
ggplot(data.frame("Year" = 2013:2022,
"Value" = round(rnorm(10), 1),
"Group" = sample(letters[1:3], 10, T)),
aes(Year, Value)) +
geom_point(aes(color = Group)) +
geom_text(aes(label = Value, color = Group), vjust = -1, show.legend = FALSE) +
scale_color_manual(values = c("red", "green", "blue", "darkred", "darkgreen", "darkblue"))

