randomizeR (version 1.4.2)

plotEv: Evaluation plotting

Description

Plot of an evaluation object.

Usage

plotEv(evaluation, labels, cols)

Arguments

evaluation

object of type evaluation.

labels

labels used in the plot. Can be NULL.

cols

colors of the lines representing the desirability scores in the plot. Can be NULL.

See Also

Other desirability topics: derFunc, evaluate, getDesScores, plotDes, probUnDes

Examples

Run this code
# NOT RUN {
# Compare Random Allocation Rule to Big Stick Design with respect to different issues
# and their corresponding desirability functions
issue1 <- corGuess("CS")
issue2 <- chronBias(type = "linT", theta = 1/4, method = "exact")
RAR <- getAllSeq(rarPar(4))
BSD <- getAllSeq(bsdPar(4, mti = 2))
A1 <- assess(RAR, issue1, issue2, endp = normEndp(c(0,0), c(1,1)))
A2 <- assess(BSD, issue1, issue2, endp = normEndp(c(0,0), c(1,1)))

d1 <- derFunc(TV = 0.5, 0.75, 2)
d2 <- derFunc(0.05, c(0, 0.1), c(1, 1))
DesScore <- getDesScores(A1, d1, d2, weights = c(5/6, 1/6))
DesScore2 <- getDesScores(A2, d1, d2, weights = c(5/6, 1/6))

E <- evaluate(DesScore, DesScore2)
plotEv(E)

# }

Run the code above in your browser using DataLab