Assume a big set of data like
Height (m) My data
0 18 5.0
1 25 6.0
2 10 1.0
3 13 1.5
4 32 8.0
5 26 6.7
6 23 5.0
7 5 2.0
8 7 2.0
And I want to plot the average (and, if possible, the standard deviation) of "My data" as a function of height, separated in the range [0,5),[5,10),[10,15) and so on.
Any idea? I've tried different approaches and none of them work