plotDes: desScore plotting

View source: R/desScores.R

plotDesR Documentation

desScore plotting

Description

Plot of an desScore object.

Usage

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

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.

Value

a plot of an desScore object

See Also

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

Examples

# 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)

randomizeR documentation built on Sept. 19, 2023, 1:08 a.m.