Help with using the Plots package

The problem is your y1 has 3 elements, while x and y have four elements. If I add an element to y1, I get:

x = 1:4
y = [0.16, 12, 8, 0.13]
y1 = [0.07, 13, 7,2]
y2 = [y, y1]
plot(x,y2)

4 Likes