tslumley / hextri Goto Github PK
View Code? Open in Web Editor NEWhexagonal binning with triangular sub-binning
License: Other
hexagonal binning with triangular sub-binning
License: Other
Hi Prof. Lumley,
I came across this plotting package which will be useful for a paper I am writing.
An addition I want to make to this plot is to highlight particular hex's as is shown in the accepted answer in this question:
https://stackoverflow.com/questions/76685323/highlight-particular-hex-bins-with-geom-hex
As far as I can tell, there is no way to currently do this in hextri.
Do you have any ideas on how I could adapt hextri to do this?
My first thought was to plot a layer of hexagons ontop of a hextri plot where the borders could be manipulated, but I can't figure out how to reproduce the hexagonal patterning.
I think the hexagonal patterning comes from hexbin::hexbin, but I am not sure how to use the hexbin object to create a series of hexgon polygons.
Any pointers would be appreciated,
Sam
If the error to be diffused over nearby hexes puts any of the triangles below zero, the negative part is passed on to the subsequent hex in rendering order. At the moment, the subsequent hex for a hex on the right edge of the plot is on the left edge. If we switched rendering order to go left to right along one row then right to left along the next, the error diffusion would be more accurate. Slightly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.