Nature, in Code

Genetic Variance: Population Size and Mutation Rate

The genetic variation, H, depends on both the population size N and the mutation rate μ.

Code


var data=[];
var x_max = 10;

for (var i = 0; i <= x_max+0.005; i = i + 0.01) {
	data.push(i/(1+i));
}

draw_line_chart(data,"4N\u03BC","H",[],x_max);
			
Note: the draw_line_chart function is built with D3.js and can be found here.