Error in plot command - Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ

Again, you are not including the sample data in your reprex and we can´t try to figure out what your problem is, please read this link more carefully and try to make a valid reproducible example.