The lowest point has a y coordinate of 2. The highest point has a y coordinate of 6. The difference is 6-2 = 4. Cut this in half to get 4/2 = 2 which is the amplitude. This is the vertical distance from the midline (y = 4) to either the peak point or the valley point.