utility.calc.colors: Color Scheme for Value Functions

View source: R/utility.aux.r

utility.calc.colorsR Documentation

Color Scheme for Value Functions

Description

Function to calculate a color scheme for value functions.

Usage

utility.calc.colors(n = 5)

Arguments

n

number of colors.

Details

For n = 5 this function produces the standard colors red, orange, yellow, green and blue as used in river assessment programs. These colors are provided in a lighter version to improve readability of black text in front of the colored background. For large values of n quasi-continuous transitions are defined between these colors. Any other vector of colors can be used by the plotting routines.

Value

Character vector of colors.

Author(s)

Peter Reichert <peter.reichert@emeriti.eawag.ch>

References

Short description of the package:

Reichert, P., Schuwirth, N. and Langhans, S., Constructing, evaluating and visualizing value and utility functions for decision support, Environmental Modelling & Software 46, 283-291, 2013.

Textbooks on the use of utility and value functions in decision analysis:

Keeney, R. L. and Raiffa, H. Decisions with Multiple Objectives - Preferences and Value Tradeoffs. John Wiley & Sons, 1976.

Eisenfuehr, F., Weber, M. and Langer, T., Rational Decision Making, Springer, Berlin, 2010.

See Also

See
plot.utility.endnode.discrete
plot.utility.endnode.intpol1d
plot.utility.endnode.parfun1d
plot.utility.endnode.intpol2d
plot.utility.endnode.cond
plot.utility.aggregation
plot.utility.conversion.intpol
plot.utility.conversion.parfun
for the use of such color vectors in plotting functions and
utility.get.colors
for getting colors corresponding to specified values.

Examples

utility.calc.colors(5)
utility.calc.colors(100)

utility documentation built on Aug. 28, 2023, 1:07 a.m.