Below is my code and I get two legends.
I was wondering
How I can remove one of them? And
Right now, both of them have the numeric values but I want to change the labels of the two points of
mod_c
in the legend.
I'd appreciate any help.
ggplot(data=data, aes(x=se_c, y=fit, color=mod_c, group=mod_c)) +
geom_point() +
geom_line(aes(linetype=mod_c),size=1.2) +
geom_ribbon(aes(ymin=lower, ymax=upper, fill=mod_c), alpha=.1) +
xlab("SE") + xlim(-3,3) +
ylab("Satisfaction") + ylim(0,3.5) +
theme_classic()+theme(text=element_text(family="Times New Roman",size=14))+
scale_fill_manual(values = c("black", "red"), name = "") +
scale_color_manual(values = c("black", "red"), name = "")