Post
R Programming
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 March 2023
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"))
STILL GOT QUERIES?
Copyright © 2013 - 2023 MindMajix Technologies