Creates a vertical colorbar as a 4-channel RGBA array.
Arguments
- colormap
A vector of colors or a function returning colors.
- n_colors
Number of discrete color segments in the gradient.
- width
Output width in pixels.
- height
Output height in pixels.
- ticks
Numeric vector of tick positions in data units. If
NULL, ticks are computed automatically viapretty()restricted to the data range.- tick_labels
Character vector of tick labels.
- data_range
The data range that
ticksare specified in.- label_cex
Label size multiplier.
- title
Optional title string drawn to the right of the color strip.
- background
Background RGBA color (0-1 scale).