R/khroma-deprecated.R

Defines functions palette_size_range

Documented in palette_size_range

#' Deprecated Functions in dimensio
#'
#' These functions still work but will be removed (defunct) in the next version.
#' @name khroma-deprecated
#' @rdname khroma-deprecated
#' @keywords internal
NULL

#' @export
#' @rdname khroma-deprecated
palette_size_range <- function(range = c(1, 6), ...) {

  force(range)

  function(x) {
    need_continuous(x)
    x <- scale_range(x)
    scale_range(sqrt(x), to = range(range, na.rm = TRUE))
  }
}

Try the khroma package in your browser

Any scripts or data that you put into this service are public.

khroma documentation built on April 4, 2025, 2:37 a.m.