ropensci / auunconf

repository for the Australian rOpenSci unconference 2016!
18 stars 4 forks source link

hextri package, documentation, vignette #30

Open dicook opened 8 years ago

tslumley commented 8 years ago

Sounds like a good idea to me.

ghost commented 8 years ago

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?

tslumley commented 8 years ago

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? ¯(ツ)

dicook commented 8 years ago

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

ghost commented 8 years ago

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

njtierney commented 8 years ago

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

tslumley commented 8 years ago

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.

njtierney commented 8 years ago

Awesome!

benmarwick commented 8 years ago

This package is now on CRAN, amazing!

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