| idsBaseFontFamily <- 'Fira Sans Condensed' |
| idsPalette <- function() { |
| idsPaletteD3 <- function() { |
| idsPaletteGreyscale <- function() { |
| "#000000", "#B2B0AD", "#737373", "#D8D7D6", "#B2B0AD", "#8C8984" |
| backgroundColorDark <- "#2a2a2a" |
| textColorDark <- "#E0E0E3" |
| lowContrastColorDark <- "#707073" |
| highContrastColorDark <- "#F0F0F3" |
| mediumContrastColorDark <- "#808083" |
| backgroundColor <- "#ffffff" |
| highContrastColor <- "#101013" |
| lowContrastColor <- "#E0E0E3" |
| mediumContrastColor <- "#404043" |
| tooltipBackgroundColor <- "#ffffffe0" |
| boxplotFillColor <- "#505053" |
| candlestickColor <- "black" |
| #' @param palette \code{c("D3", "default")} - use default or (adapted) d3 palette |
| #' @importFrom scales manual_pal |
| #' \url{https://github.com/d3/d3} |
| ids_pal <- function(palette="default") { |
| values <- if(palette == "d3" || palette == "D3") idsPaletteD3() else idsPalette() |
| f <- scales::manual_pal(values) |
| attr(f, "max_n") <- length(values) |