Learn R Programming

rorutadis (version 0.4.2)

plotVF: Plot value function

Description

This function draws value function for selected criteria.

Usage

plotVF(solution, criteria = NULL, yAxis = "max", showAlternatives = FALSE, titles = TRUE, plotsPerRow = 2)

Arguments

solution
criteria
Indices of criteria to plot. If NULL all criteria will be plotted.
yAxis
Y axis limit ("adjusted" - maximal value on single plot, "max" - maximal value on all criteria, "unit" - one).
showAlternatives
Whether to mark values of alternatives.
titles
Vector of titles for charts or boolean value(s) whether default title should be used.
plotsPerRow
Maximal plots per row.

See Also

findRepresentativeFunction findSimpleFunction investigateUtility plotComprehensiveValue

Examples

Run this code
perf <- matrix(c(5, 2, 1, 7, 0.5, 0.9, 0.4, 0.4), ncol = 2)
problem <- buildProblem(perf, 3, FALSE, c('c', 'g'), c(3, 3))
problem <- addAssignmentsLB(problem, c(1, 2), c(2, 3))

representativeFunction <- findRepresentativeFunction(problem, 0)
plotVF(representativeFunction)

Run the code above in your browser using DataLab