The relationship between nucleotide diversity and the number of common SNPs (A) or the number of inferred haplotypes (B) for 213 environmental response genes.