utility.get.colors {utility}R Documentation

Get Color Corresponding to Specified Value Levels

Description

Function to get the colors from a given color scheme at specific value levels.

Usage

utility.get.colors(u,col=utility.calc.colors())

Arguments

u

value level representing the evaluation ot a value function (this value level has to be between zero and unity).

col

color scheme (vector of colors to be used for a division of the interval between zero and unity into equal intervals)).

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
utility.calc.colors

Examples

utility.get.colors(c(0,0.5,1))

[Package utility version 1.4.6 Index]