distances.plot function

Barplot for the sum of distances.