plotTree icon indicating copy to clipboard operation
plotTree copied to clipboard

Recombination Blocks Colour

Open esteinig opened this issue 9 years ago • 1 comments

Hey Kat,

thanks very much for your beautiful plotting functions!

I am using Gubbins and wanted to change the colour of recombination blocks in the plot - perhaps other users might want to do this as well?

There is a minor change that accomplishes this very easily by adding a fourth colour ("red", "blue") column to the block file and adding the following to the getLayout function in Line 321:

319       x1 <- blocks[i,2]
320       x2 <- blocks[i,3]
321       lines(c(x1,x2),c(y,y), lwd=blwd,lend=2, col=as.character(blocks[i, 4]))

esteinig avatar Aug 12 '16 03:08 esteinig

Thanks for this. Could you submit the modified code as a pull request?

katholt avatar Aug 12 '16 06:08 katholt