I want to plot both y1 and y2 against x.
I don't want to use ggplot2
.
Is it possible with just the plot()
function? I have tried using par(new = TRUE)
but this literally overlays y2 with y1 and it looks messy. I want to color code it for both y1 and y2.
Grateful for any pointers. Thanks