I am using geom_smooth and it gives me default legend line color blue that I cannot use in the plot. Is there a way of changing the default color for geom_smooth legend line?
for example, I wand to change the legend colour to black for line type in the following plot
library(reshape2)
library(ggplot2)
d1<-melt(mtcars,id=c("mpg","cyl"))
p<-ggplot(d1,aes(x=mpg,y=value,factor=variable,color=cyl))
p1<-p+geom_smooth(aes(linetype = as.factor(cyl)),se = F,stat = "smooth",method = "glm",size=.5, inherit.aes = T)+
scale_linetype_manual("line type",labels = rp, values=c(1,5,4,3))