How do you graph the sum of 4 surge functions?

11 Views Asked by At

I used the program R to calculate the values of the maximums and the points where the new function starts, however, I don't know how to use these points to graph the function I'm looking for. Image of the results I got from R