plot-api / jetbrains.letsPlot.scale / scale_fill_brewer

scale_fill_brewer

fun scale_fill_brewer(type: String? = null, palette: Any? = null, direction: Number? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: Any? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

Sequential, diverging and qualitative color scales from colorbrewer.org for fill aesthetic. Color schemes provided are particularly suited to display discrete values (levels of factors) on a map.

Parameters

type - string One of seq (sequential), div (diverging) or qual (qualitative) types of scales.

palette - string or number If a string, will use that named palette. If a number, will index into the list of palettes of appropriate type.

direction - numeric Sets the order of colors in the scale. If 1, the default, colors are as output by brewer.pal. If -1, the order of colors is reversed.

name - string The name of the scale - used as the axis label or the legend title. If None, the default, the name of the scale is taken from the first mapping used for that aesthetic.

breaks - list of numbers A numeric vector of positions (of ticks)

labels - list of strings A vector of labels (on ticks)

limits - data range for this scale. Continuous scale: a pair of numbers providing limits of the scale. Use null to refer to default min/max. Discrete scale: list of data values to display, and their order.

naValue - an aesthetic value which is used when data in not available.

trans - string Name of built-in transformation ('identity', 'log10', 'reverse', 'sqrt').