vis_files/generate_plots.js
/// Generate array trans based on scale per 100k individuals
Generate array trans based on scale per 100k individuals
Generate array trans based on scale per 100k individuals
function generate_arraytrans(vis)
{
	vis.arraytrans=[];
	for(t = 0; t < vis.array.length; t++){
		vis.arraytrans[t] = [];
		for(c = 0; c < vis.array[t].length; c++){
			if(vis.popscale == null || rateradio != "rate") vis.arraytrans[t][c] = vis.array[t][c];
			else vis.arraytrans[t][c] = vis.array[t][c]*100000/vis.popscale[c];
		}
	}
}
function generate_arraytrans ( vis ) { vis . arraytrans = [ ] ; for ( t = 0 ; t < vis . array . length ; t ++ ) { vis . arraytrans [ t ] = [ ] ; for ( c = 0 ; c < vis . array [ t ] . length ; c ++ ) { if ( vis . popscale == null || rateradio != "rate" ) vis . arraytrans [ t ] [ c ] = vis . array [ t ] [ c ] ; else vis . arraytrans [ t ] [ c ] = vis . array [ t ] [ c ] * 100000 / vis . popscale [ c ] ; } } }
Generate array trans based on scale per 100k individuals
Generate array trans based on scale per 100k individuals