This function plots residual for each observed value by finding the difference between observed and predicted points. It also fits a distribution to the residual value.
Useful links