R/deprecated.R

Defines functions all_colorspectra all_colorpanels

Documented in all_colorpanels all_colorspectra

#' Deprecated
#'
#' @description \code{all_colorpanels()} is deprecated due to naming issues. Use
#' \code{all_color_palettes()} instead.
#'
#' @return
#' @export
#'
all_colorpanels <- function(){ # deprecated due to naming issues -> use 'all_color_palettes()'

  list("science" = colorpanels)

}

#' Deprecated
#'
#' \code{all_colorspectra()} is deprecated due to naming issues. Use
#' \code{all_color_spectra()} instead.
#'
#' @return
#' @export
#'
all_colorspectra <- function(){

  list(
    "Diverging" = diverging,
    "Sequential single hue" = sequential_single_hue,
    "Sequential multi hue" = sequential_multi_hue
  ) %>% purrr::map(.f = function(i){base::sort(i)})

}


#' @rdname colorpalettes
#' @export
colorpanels <- c("milo", "jco", "npg", "aaas", "nejm", "lo", "jama", "uc") # deprecated due to naming issues -> use 'colorpalettes'
kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.