Open kweinert opened 3 years ago
Hello,
Yes custom color palette weren't supported, should work now if you re-install from GitHub.
With a discrete scale it uses scale_fill/color_manual
and with a continuous one scale_fill/color_gradientn
.
Victor
Hi, I have difficulities setting a custom palette. Here is what I tried:
pals <- esquisse:::default_pals() pals$choices$Qualitative[["custom"]] <- c("#1F82BF", "#33B9CA", "#B1C800", "#E2001A", "#F29400", "#FFC800") options(esquisse.palettes=pals)
If I start esquisser() (version 1.0.1) the new palette is shown. However, if I select it, the following error is displayed:
Error: 'arg' should be one of '“ggplot2”, “viridis”, “magma”, “inferno”, “plasma”, “cividis”, “BrBG”, “PiYG”, “PRGn”, “PuOr”, “RdBu”, “RdGy”, “RdYlBu”, “RdYlGn”, “Spectral”, “Accent”, “Dark2”, “Paired”, “Pastel1”, “Pastel2”, “Set1”, “Set2”, “Set3”, “Blues”, “BuGn”, “BuPu”, “GnBu”, “Greens”, “Greys”, “Oranges”, “OrRd”, “PuBu”, “PuBuGn”, “PuRd”, “Purples”, “RdPu”, “Reds”, “YlGn”, “YlGnBu”, “YlOrBr”, “YlOrRd”'
So somehow the new palette entry is not passed forward?
Kind regards, Karsten