plot.utility.endnode.intpol1d: Plot Node Definition

View source: R/utility.endnode.intpol1d.r

plot.utility.endnode.intpol1dR Documentation

Plot Node Definition

Description

Plot node definition.

Usage

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

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.

xlim

(optional) limits for x-axis of the plot (default is range).

...

additional arguments passed to the R plotting routine.

Note

Note that the plotting routines for the other end nodes
plot.utility.endnode.discrete
plot.utility.endnode.parfun1d
plot.utility.endnode.intpol2d
plot.utility.endnode.cond
plot.utility.endnode.firstavail
are as far as possible the same so that all end nodes can be plotted with the same commands irrespective of the type of the end node.

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

# see
help(utility)
# for examples.

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