Learn R Programming

tools4uplift (version 0.1-0)

QiniBarPlot: Uplift barplot

Description

Barplot of observed uplift with respect to predicted uplift sorted from the highest to the lowest.

Usage

QiniBarPlot(x, title = "Model Performance: Uplift by Group", color = NULL)

Arguments

x

a table that must be the output of QiniTable function.

title

an overall title for the plot.

color

color of the barplot.

Value

a barplot

See Also

QiniTable

Examples

Run this code
# NOT RUN {
library(tools4uplift)
data("SimUplift")

square1 <- SquareUplift(SimUplift, "X1", "X2", "treat", "y")

#performance of the heat map uplift estimation on the training dataset
perf <- QiniTable(data = square1, treat = "treat", 
                  outcome = "y", prediction = "Uplift_X1_X2", nb.group = 5)

QiniBarPlot(perf)

# }

Run the code above in your browser using DataLab