Просмотр исходного кода

suppress partial match warning from colorspace::sequential_hcl()

tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
fc1b0610f3
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      R/ggplot2.R

+ 2
- 2
R/ggplot2.R Просмотреть файл

@@ -646,13 +646,13 @@ scale_xaringan_continuous <- function(
aes_type <- match.arg(aes_type)
color <- hex2HCL(get_theme_accent_color(color, inverse))

colors <- colorspace::sequential_hcl(
colors <- suppressWarnings(colorspace::sequential_hcl(
n = 12,
c1 = color[1, "C"],
l1 = color[1, "L"],
h1 = color[1, "H"],
rev = TRUE
)
))

rescaler <- function(x, ...) {
scales::rescale(x, to = c(begin, end), from = range(x, na.rm = TRUE))

Загрузка…
Отмена
Сохранить