In the previous section, we introduced gophernotes and Gota. In this section, we will explore a dataset containing 500 samples of gender, height, and BMI index. We will do this using the gonum/plot library. This library, which was originally a fork of the 2012 Plotinum library[15], contains several packages that make creating data visualizations in Go much easier[16]:
- The plot package contains a layout and formatting interface.
- The plotter package abstracts the layout and formatting for common plot types, such as bar charts, scatter plots, and so on.
- The plotutil package contains utility funcs for common plot types.
- The vg package exposes an API for vector graphics and is particularly useful when exporting plots to other software. We will not be covering this package.