boxplot: Illustrate Results from Stability Assessment

Description Usage Arguments See Also Examples

Description

Illustrates the results from stability assessments performed by stability using boxplots.

Usage

1
2
3
4
  ## S3 method for class 'stablelearnerList'
boxplot(x, ..., main = NULL, xlab = NULL, ylab = NULL, reverse = TRUE)
  ## S3 method for class 'stablelearner'
boxplot(x, ...)

Arguments

x

an object of class "stablelearnerList" to be illustrated.

...

Arguments passed to boxplot.

main

a character specifying the title. By default set to NULL.

xlab

a character specifying the title for the x axis. By default set to "Learner".

ylab

a character specifying the title for the y axis. By default set to NULL.

reverse

logical. If reverse = TRUE (default), the similarity values are transformed (reversed) such that higher values indicate a higher stability.

See Also

stability, summary.stablelearnerList

Examples

1
2
3
4
5
6
7
8
library("partykit")
r1 <- ctree(Species ~ ., data = iris)

library("rpart")
r2 <- rpart(Species ~ ., data = iris)

stab <- stability(r1, r2, names = c("ctree", "rpart"))
boxplot(stab)

stablelearner documentation built on Jan. 13, 2021, 5:41 p.m.