plotting mean and sd of the nn distribution as function of the maximum corr dist