https://researchdatapod.com/how-to-solve-r-error-in-xy-coordsx-y-xlabel-ylabel-log-x-and-y-lengths-differ/
How to Solve R error in xy.coords(x, y, xlabel, ylabel, log): 'x' and 'y' lengths differ