stablelearner (version 0.1-2)

boxplot.stablelearnerList: Illustrate Results from Stability Assessment

Description

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

Usage

# S3 method for stablelearnerList
boxplot(x, ..., main = NULL, xlab = NULL, ylab = NULL, reverse = TRUE)
  # S3 method for 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

Run this code
# NOT RUN {
library("partykit")
r1 <- ctree(Species ~ ., data = iris)

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

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

# }

Run the code above in your browser using DataLab