I would like to customise diagnostic plots in ggplot2. I have tried this:
library(ggfortify)
library(ggplot2)
model1 <- lm(len~dose*supp, data = ToothGrowth)
autoplot(model1, which = 1, label.size = 3, data = ToothGrowth, size=3, colour = "dose",
smooth.colour = 'darkblue', smooth.linetype="dotted", smooth.linesize=3)
I got this picture:
I changed the line colour and line type for smoother line, but I do not know how can I change the line width. I have tried "smooth.linesize", but it is not working. It is possible somehow change the line width?
Can somebody help me? Thank You.