plot.utree: Visualization of uplift trees.

View source: R/utree.R

plot.utreeR Documentation

Visualization of uplift trees.

Description

plot method for class utree.

Usage

## S3 method for class 'utree'
plot(x, ...)

Arguments

x

An object of class utree.

...

Arguments passed to partykit::plot.constparty.

Author(s)

Leo Guelman leo.guelman@gmail.com

Examples

set.seed(1)
df <- sim_uplift(n = 1000, p = 50, response = "binary")
form <- create_uplift_formula(x = names(df)[-c(1:3)], y = "y", trt = "T")
fit <- utree(form, data = df, maxdepth = 3)
plot(fit, main = "uplift tree", gp = gpar(cex = 0.5))

leoguelman/uplift2 documentation built on April 15, 2022, 4:34 a.m.