I created a plot with two lines without any problem. The creation of the legend also worked without any problems. I just need to modify one line of the legend as it is dotted in the plot:
legend("bottom", legend = c("y", "y2", "A"), col = c("red", "orange", "blue"),
lwd=1, cex = 0.3)
so the line for A is dotted, how can I code this into R?