Function to plot the smoothed distance decay curve