I have the following code.
bereik = c(0, 0.05, 0.5, 0.95, 1)
#xvalues of plots
xval1 = c(0, 400, 4000, 10000, 10960)
xval2 = c(0, 1101, 2760, 4550, 10960)
xval3 = c(0, 1000, 3000, 5000, 10960)
xval4 = c(0, 2000, 5000, 8000, 10960)
xval5 = c(0, 400, 1250, 5000, 10960)
#plot 5 graphs
plot(xval1, bereik, type="l", col ="blue")
par(new=TRUE)
plot(xval2, bereik, type="l", col="red")
par(new=TRUE)
plot(xval3, bereik, type="l", col="yellow")
par(new=TRUE)
plot(xval4, bereik, type="l", col="green")
par(new=TRUE)
plot(xval5, bereik, type="l", col="purple")
How can I include in this plot a sixth graph, which is the average of the 5 given graphs. That is, call graph1 F1, graph2 F2, ..., graph 5 F5, how to include in the plot the graph F6 = 0.2F1 + 0.2F2 + ... + 0.2*F5?

