VEuPathDB / web-components

Library of React components for plotting data
Apache License 2.0
1 stars 0 forks source link

Hexbin plot component #413

Open d-callan opened 1 year ago

d-callan commented 1 year ago

Discussed in dataviz meeting, would like a hexbin plot. This would give us an alternative to the scatter plot that can support large data.

Could look here for examples: https://r-graph-gallery.com/100-high-density-scatterplot-with-binning.html

I'm inclined to not implementing new components in plotly, not that I'm even sure we could for this. Think we should seriously consider visx here.

bobular commented 1 year ago

My understanding is that the back end will need to do the hexagonal binning and the the front end is likely to be a glorified scatterplot (with hexagonal glyphs). Presumably there is R code available already?

Agree that this would be a good opportunity to move away from Plotly.

bobular commented 1 year ago

Also, I presume no overlay possible for hexbin?

Overlay in regular scatterplots is problematic too however. The order in which series get rendered on screen can change the entire picture, even when we have high transparency, see example in https://github.com/VEuPathDB/web-components/pull/419#issuecomment-1334215756