I am a R-noob and need help with designing a plot. I have the plot mostly done however I cannot change the design of one of the two regression lines. I would like to have one of the lines to be dotted so that the plot is understandable when printed in B&W. Also, I would like to describe the plot in the caption in accordance with APA style. However, the caption is too long. How can I get the caption to use several lines instead of one way too long line? This is what I have so far:
P1plotV1.1 <- ggplot(subPD,
aes(x = subPD$Digit, y = subPD$Phoflu_tot, shape = Group, color=Group)) +
geom_point() +
geom_smooth(method = "lm", se = FALSE) +
labs(title="Primary analysis") +
labs(x="Digit span") +
labs(y="Phonemic fluency") +
labs(caption="test")
Which gives me the plot attached. I would be happy about any suggestion on how I can change one of the regression lines to a dotted line.