gg_ba2: Plot Bivariate Analysis (2)

Description Usage Arguments Value Examples

Description

A minimal version for gg_ba

Usage

1
gg_ba2(variable, target, labels = TRUE, order.by = NULL)

Arguments

variable

A numeric vector containing scores or probabilities

target

A numeric binary vector (0, 1)

labels

A par

order.by

A par

Value

A ggplot2 object

Examples

1
2
3
4
5
6
7
8
data("credit")

variable <- as.character(credit$marital_status)
target <- credit$bad

gg_ba2(variable, target)
gg_ba2(variable, target, labels = FALSE)
gg_ba2(variable, target, order.by = "odds")

jbkunst/riskr documentation built on May 18, 2019, 7 p.m.