Gridding increment, is there a trick to find it automagically?

Hello,

I have many xyz files that are converted to grd format in this way (R depends on every file):

triangulate tmp.xyz $R -I15s -Gtmp.grd

The problem is that I just noticed that this -I15s does not work for several files, their areas are quite small. I have been searching a way to automatically derive the grid increment but no success so far. For example, gmtinfo -I- myfile.xyz works to automatically derive the region R for a xyz file.

Any hint is much appreciated,