get_stump_colour_for_legend: Determines the stump color for a legend based on its mean...

View source: R/generic_functions.R

get_stump_colour_for_legendR Documentation

Determines the stump color for a legend based on its mean value

Description

This function is internal and is used to compute the color of a stump for the purpose of legend display, based on the mean value relative to specified limits.

Usage

get_stump_colour_for_legend(lims, mean_value, palette)

Arguments

lims

A numeric vector of length 2 specifying the limits within which the mean value falls.

mean_value

The mean value for which the color needs to be determined.

palette

A character vector of colors representing the palette from which the color is selected.

Value

A character string specifying the color corresponding to the mean value.


AlanInglis/BartVis documentation built on July 27, 2024, 12:02 a.m.