Skip to content

HexBin plot #10

@kMutagene

Description

@kMutagene

Description

Hexagonal Binning is a method for visualizing bivariate distributions especially suited to visualize the distribution of large two-dimensional data sets [1, 2]

Hexagonal binning plots density, rather than points. Points are binned into gridded hexagons and distribution (the number of points per hexagon) is displayed using either the color or the area of the hexagons. This technique was first described in 1987 [3].

The underlying idea is as follows: an area containing the data set is tessellated [4] with regular hexagons [5]. The number/proportion of points falling in each cell is counted and mapped to a colormap.

References

Pointers

  • Ideally, you start prototyping in a scripting or notebook environment where you can iterate fast
  • The general process of creating a hexbin plot could look like this:
    • select area to tesselate
    • implement hexagonal tesselation and calculate hexagon positions
    • bin existing data points into the hexagons (by their 2d position)
    • create a plot containing the hexagons coloured according to the amount of points contained
  • You most likely need to use and/or implement functions from both FSharp.Stats and Plotly.NET.
  • The resulting top-level chart function is ideally implemented as an extension method in this repository to prevent Plotly.NET from receiving a FSharp.Stats dependency
Hints (click to expand if you need additional pointers)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Status: Available

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions