To reduce the number of available functions and have a smoother user experience, it makes sense to combine ppc_error_scatter_avg
and ppc_error_scatter_avg_vs_x
. This combined function should work similarly to the updated version of ppc_error_binned
, which is implemented at #359.
With this change, if a vector is passed to the optional x
argument of ppc_error_scatter_avg
, then the average of the errors computed from y and each dataset (row) in yrep can be plotted against that x
. Otherwise, the average of errors will be plotted against y
.