hexbin icon indicating copy to clipboard operation
hexbin copied to clipboard

Additional documentation re changing colors in hdiffplot

Open tylerhoecker opened this issue 4 years ago • 0 comments

Thanks for this very useful package. I am trying to change the colors of the hexbins returned by hdiffplot. The documentation is difficult to follow on this, and doesn't seem to provide a complete list of items in the col.control list. For example, medhex is listed, and changing the color for this argument works. I can't figure out what the list element is called for the other hexbins in the plot. For example, changing the element 'focus' to anything besides NULL:

hdiffplot(bin1, bin2, col.control = list(focus = 'black'))

returns the error:

Error in diff.cols[[1]]$fill[i, ] : subscript out of bounds

Alternatively, a way to 'export' the information created by hdiffplot such that it could be plotted with ggplot would be extremely useful.

tylerhoecker avatar Dec 03 '21 19:12 tylerhoecker