New function that plots errors vs any feature of the data