bi_pal() returns the colours of a bivariate palette: a dim x dim matrix
of colours, one per pair of classes, flattened to a vector named by class
("1-1", "2-1", ..., "3-3"; the first number is the x class, the second
the y class). It is what scale_fill_bivariate() colours each class with.
Details
The built-in palettes are Joshua Stevens' four 3x3 schemes; for dim = 2 and
dim = 4 they are interpolated in Lab space from the 3x3 grid, so the corner
colours are the same at every size. The lightest corner ("1-1") is low on
both variables, the darkest ("3-3" at dim = 3) high on both.
See also
bi_class(), scale_fill_bivariate()
Other bivariate:
bi_class(),
guide_bivariate(),
scale_fill_bivariate()
