Learn R Programming

utility (version 1.4.6)

plot.utility.endnode.discrete: Plot Node Definition

Description

Plot node definition.

Usage

# S3 method for utility.endnode.discrete
plot(x, 
     par       = NA, 
     col       = utility.calc.colors(), 
     gridlines = c(0.2, 0.4, 0.6, 0.8), 
     main      = "", 
     cex.main  = 1, 
     ...)

Arguments

x

node to be plotted.

par

(optional) labelled numeric parameter vector providing parameters to modify the value or utility function before plotting the node.

col

(optional) character vector of colors to be used to color the interval between zero and unity in equidistant sections (use repetitions of the same color if you want to have a non-equidistant color-coding). This attribute is only used for value nodes.

gridlines

(optional) numeric vector of levels at which gridlines are plotted in the node definition.

main

(optional) title of the plot.

cex.main

(optional) scaling factor for title of the plot.

...

additional arguments passed to the R plotting routine.

Author

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.endnode.discrete.create for how to construct such a node and evaluate.utility.endnode.discrete for how to evaluate the node.

See utility.calc.colors for an example of how to construct color schemes and utility.get.colors for how to get colors for specifed value levels.

Examples

Run this code
# see
help(utility)
# for examples.

Run the code above in your browser using DataLab