Modules
Giggly is a grammar-of-graphics plotting library for Elixir, modelled on ggplot2.
A table of named columns of equal length, as Giggly holds one: the data a plot was given, and
each table Giggly.layer_data/2 returns. names/1, row_count/1, dtypes/1 and pull/2 read
it.
Datasets to plot, for the examples in Giggly's notebooks and for your own: copies of tables R and ggplot2 ship.
A column whose values have levels: the values it may hold, in an order of their own, which a plot follows wherever it orders the column's values: on an axis, in a legend, in the groups a stat counts and a position stacks, and in a facet's panels.
What a mapping maps each aesthetic to: a column, an expression computed from columns in each row, or a constant. A mapping is a map from aesthetic to value
Describes a plot: its data, a mapping from aesthetics to columns, and layers added with a pipe.
A binned scale: a colour or fill scale that cuts its continuous values into bins at its breaks and gives every value in a bin the same colour. Its fields
A continuous scale. Giggly.Plot.scale_x_continuous/2, Giggly.Plot.scale_x_date/2,
Giggly.Plot.scale_x_datetime/2 and Giggly.Plot.scale_x_time/2 record one with the options
they are given and no range, and Giggly.panel_scales/2 returns an axis's trained. Its fields
A discrete scale. Giggly.Plot.scale_x_discrete/2 records one with the options it is given and
no levels, and Giggly.panel_scales/2 returns an axis's trained. Its fields