I have two columns that I want to use to color my data in ggplot. The first one just categorizes the data in two two groups and the second one tells if the data is an outlier or not. Is there anyway I can color my data in ggplot using both columns. Below is the part of the code I used
geom_point(aes(color=factor(column1)))+scale_Colour_manual(values=c("blue","green"))+
geom_point(aes(color=factor(column2)))+scale_colour_manual(values=c("red","yellow"))
but below is the error I get
Scale for 'colour' is already present. Adding another scale for 'colour', which will replace the existing scale.
Thanks,
S