A list of two bins resulting from the split of `bin` in
half along the margin corresponding to the larger score.
Arguments
bin
a bin to be split with elements `x`, `y`, `depth`,
`bnds` (list with elements `x` and `y`), `expn`, `n`
xscore
numeric value giving the score for all splits along
x
yscore
numeric value giving the score for all splits along
y
wider
logical; is the bin wider than it is tall?
squarify
logical value, should we force splitting on
the longer side regardless of scores?
Author
Chris Salahub
Details
The goal of this function is to break ties within bin
splitting in a way which prevents very small or lopsided bins from
forming, a common problem with the `halfSplit` function