plotVF: Plot value function

Description Usage Arguments See Also Examples

View source: R/drawing.R

Description

This function draws value function for selected criteria.

Usage

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

Arguments

solution

Solution to plot (e.g. result of findRepresentativeFunction, findSimpleFunction or investigateUtility).

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

1
2
3
4
5
6
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)

rorutadis documentation built on May 2, 2019, 8:51 a.m.