randomizeR (version 3.0.2)

plotDes: desScore plotting

Description

Plot of an desScore object.

Usage

plotDes(desScore, labels, colAv = "red", quantiles = FALSE)

Value

a plot of an desScore object

Arguments

desScore

object of type desScore.

labels

labels used in the plot. Can be NULL.

colAv

color of the line representing the average of the desirability scores in the plot.

quantiles

logical whether the quantiles should be depicted in the plot.

See Also

Other desirability topics: derFunc, evaluate(), getDesScores(), plotEv(), probUnDes()

Examples

Run this code
# compute the desirability scores of the full set of PBR(4)
sequences <- getAllSeq(rarPar(4))
issue1 <- corGuess("CS")
issue2 <- chronBias("linT", 1/4, "exact")
endp <- normEndp(mu = c(0,0), sigma = c(1,1))
A <- assess(sequences, issue1, issue2, endp = endp)
d1 <- derFunc(0.5, 0.75, 1)
d2 <- derFunc(0.05, 0.1, 1)

D <- getDesScores(A, d1, d2)
summary(D)
plotDes(D)
plotDes(D, quantiles = TRUE)

Run the code above in your browser using DataLab