I am using the code below for all my visuals, and for some works and for others not. I have checked the format anD everything
library(ggplot2)
dataset$Date<- as.Date(dataset$Date, format='%d/%m/%y' )
ggplot(dataset, aes(x=Date, y=MN)) +
geom_point(alpha=0.8, aes(color=ELB_Mn)) +
scale_colour_manual(values = c("white"="black", "tomato"="tomato", "lightskyblue"="lightskyblue", "mediumpurple"="purple", "orange")) +
geom_line(data=dataset, aes(x=Date, y=Mn_Target), color = "red") +
guides(color=FALSE)
Error: Discrete value supplied to continuous scale