lets-plot-kotlin icon indicating copy to clipboard operation
lets-plot-kotlin copied to clipboard

Creating a custom palette

Open Kernald opened this issue 2 years ago • 1 comments

ggplot seems to have a (convoluted...) way to define custom palettes (e.g. here). As far as I understand, there's no similar facility exposed in Let's Plot?

Kernald avatar Aug 09 '22 04:08 Kernald

Hi @Kernald, There are scaleColorGradientN(), scaleFillGradientN() functions where you can use a custom color palette to create continuous or discrete color scale.

scaleColorManual(), scaleFillManual() are also can be used for this purpose but rather for discrete scales.

alshan avatar Aug 12 '22 17:08 alshan

Thanks, that's exactly what I was looking for! Sorry for the noise :-)

Kernald avatar Aug 14 '22 09:08 Kernald