I want to plot a histogram with a custom reducer function in Plot.binX
instead of the predefined count etc. It is possible according to the docs:
In addition, a reducer may be specified as:
- a function to be passed the array of values for each bin and the extent of the bin
but I am unable to make it work. Is there an example somewhere of this?
Thanks!