ggplot2::ggplot(data.frame("Year" = 2013:2022, "Value" = rnorm(10)),
aes(Year, Value, color = "Name with Spaces", fill = "Name with Spaces")) +
geom_line() +
geom_point(color = "blue", pch = 21) +
scale_color_manual(values = "red") +
scale_fill_manual(values = "yellow")
My code above will show the following plot in R

How can I put the two legend items into one, that is "a red line pass beneath the blue-bordered yellow point"?

