# define sample data frames
sample_data <- data.frame(x=c(1, 2, 3, 4, 5),
y1 = c(7, 10, 26, 39, 5),
y2 = c(4, 14, 16, 29, 15),
y3 = c(2, 13, 36, 19, 25),
y4 = c(8, 11, 6, 9, 35))
# create base scatter plot
plot(sample_data$x, sample_data$y1)
# overlay line plot
lines(sample_data$x, sample_data$y2, col='green', lwd=2)
lines(sample_data$x, sample_data$y3, col='red', lwd=1)
lines(sample_data$x, sample_data$y4, col='blue', lty="dashed")