Преглед изворни кода

suppress partial match warning from colorspace::sequential_hcl()

tags/v0.3.0
Garrick Aden-Buie пре 6 година
родитељ
комит
fc1b0610f3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      R/ggplot2.R

+ 2
- 2
R/ggplot2.R Прегледај датотеку

aes_type <- match.arg(aes_type) aes_type <- match.arg(aes_type)
color <- hex2HCL(get_theme_accent_color(color, inverse)) color <- hex2HCL(get_theme_accent_color(color, inverse))


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


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

Loading…
Откажи
Сачувај