Scales input data to the palette, so that colour is mapped linearly to the range of values.
d_pal(x, pal = hcl.colors(84))
data_pal(x, pal = hcl.colors(84))
Default palette 'pal' is the 'viridis' colours of [grDevices::hcl.colors()], and may be literal colour values or a function.
[data_pal()] is an alias of [d_pal()].