Posted on 29th April 2025|423 views
What changes should I do if my scale_color_manul() is not working?
see the below code the scale_color_manul() is not working
ggplot(df, aes(x=cond, y=yval)) + geom_point() + scale_color_manual(values=c("green", "yellow", "orange"))
Posted on 29th April 2025| views
You just need to map color to the variable like this
ggplot(df, aes(x=cond, y=yval, color = cond)) + geom_point() + scale_color_manual(values=c("green", "yellow", "orange"))