gg_ba2: Plot Bivariate Analysis (2)

Description Usage Arguments Value Examples

View source: R/bivariate_analysis.R

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 June 5, 2017, 5:13 p.m.