Returns colour ramps suitable for scientific imagery. The palettes other
than "turbo" are perceptually uniform and monotonic in lightness, so
ordering survives greyscale printing and remains legible to colourblind
readers. "turbo" is retained with a warning for compatibility.
Usage
hsa_palette(
name = c("viridis", "magma", "inferno", "plasma", "cividis", "mako", "rocket", "turbo"),
n = 256L,
direction = 1
)Examples
head(hsa_palette("magma", n = 5))
#> [1] "#000004FF" "#51127CFF" "#B63679FF" "#FB8861FF" "#FCFDBFFF"