jasyncapi icon indicating copy to clipboard operation
jasyncapi copied to clipboard

hextri package, documentation, vignette

Open dicook opened this issue 9 years ago • 9 comments

dicook avatar Apr 06 '16 03:04 dicook

Sounds like a good idea to me.

tslumley avatar Apr 07 '16 07:04 tslumley

I'm completely new to this hexagonal binning technique. Could you say more about how triangular sub-binning works? And perhaps there's scope for collaboration with the maintainer of the hexbin package?

ghost avatar Apr 07 '16 08:04 ghost

The triangular sub-binning makes a table of categories within each hex and allocates the six sub-triangles to categories using a proportional-representation voting algorithm. The rounding error resulting from allocating whole categories is then added to nearby hexes; a heuristic based on dithering in photography. There's a two-class example here: https://pbs.twimg.com/media/COlR3_tU8AAqFDj.png

Di wants it to be usable as a panel for other sorts of graphics, and for the documentation to not be mostly in my head. And probably for me to finish the paper, but that's out of scope for #aauconf

In the first pass (https://github.com/tslumley/hextri) I didn't want to involve the hexbin maintainer because it was pretty experimental. Now? ¯(ツ)

tslumley avatar Apr 07 '16 08:04 tslumley

I think it is clear that it is useful %^) just needs a few tweaks to get it a complete package - that others (e.g. me) can use

dicook avatar Apr 07 '16 09:04 dicook

@tslumley Thanks! I can see myself using hextri already.

ghost avatar Apr 07 '16 09:04 ghost

This is excellent! Looking forward to seeing the development at #auunconf

njtierney avatar Apr 07 '16 22:04 njtierney

There's now a vignette, and a lattice panel function. I might try to do a ggplot2 geom, but I don't know how hard that is.

tslumley avatar Apr 21 '16 04:04 tslumley

Awesome!

njtierney avatar Apr 21 '16 05:04 njtierney

This package is now on CRAN, amazing!

https://cran.r-project.org/web/packages/hextri/vignettes/hexbin-classes.html

benmarwick avatar Apr 22 '16 11:04 benmarwick