utility.calc.colors | R Documentation |
Function to calculate a color scheme for value functions.
utility.calc.colors(n = 5)
n |
number of colors. |
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.
Character vector of colors.
Peter Reichert <peter.reichert@emeriti.eawag.ch>
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
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.
utility.calc.colors(5)
utility.calc.colors(100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.