How to fix the error here, Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ

'x' and 'y' lengths differ

Check those. Possibly in the D and H arguments.

Can you provide a reproducible example?