I am trying to plot a glmer output but I either get two legends or the one without the color (I probably doubled the color coding).Also I am not sure where the dotted line comes from. This is the code I used:
plot2d = ggpredict(m2d, terms = c("Verbstellung", "group"))
plot(plot2d, connect_lines = TRUE, colors = c("red", "blue")) +
aes(linetype = .data[["group"]]) +
ggeasy::easy_center_title()+
ggtitle("Accuracy in Test Session n Acceptable Sentences only") +
theme(plot.title = element_text(size = 18, face = "bold")) +
xlab("Verb Position") + ylab("Accuracy in Percent")+
easy_all_text_size(15)+
easy_all_text_color("black")+
scale_color_manual(name = "Group", values = c("red", "blue"), labels = c("LR", "NLR"))
Recognized by R Language Collective
1