reproducing R's DNAcopy plot in D3