R/pal-identity.R

Defines functions pal_identity

Documented in pal_identity

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


#' @export
#' @rdname pal_identity
identity_pal <- pal_identity

Try the scales package in your browser

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

scales documentation built on July 4, 2024, 1:11 a.m.