Calculates the maximum within-set difference in the values of vector
‘env’, and the distribution of the permuted random within-set differences. It
then plots the observed difference as a red line, and the sorted permuted
differences as a black line and prints the probability of getting such a limited distribution.
The probability is calculated by permuting numitr-1 times, counting the number
of times the permuted maximum difference is as small or smaller than observed (n),
and calculating (n+1)/numitr. To get three-digit probabilities, set numitr=1000 (the default)