R/pal-identity.r

Defines functions identity_pal

Documented in identity_pal

#' Identity palette
#'
#' Leaves values unchanged - useful when the data is already scaled.
#'
#' @export
identity_pal <- function() {
  function(x) x
}

Try the scales package in your browser

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

scales documentation built on Aug. 20, 2022, 1:05 a.m.