plot_box {creditmodel}R Documentation

Plot Box

Description

You can use the plot_box to produce boxplot.

Usage

plot_box(
  dat,
  y,
  x = NULL,
  x_breaks = NULL,
  g = 5,
  string_bins = FALSE,
  cut_bin = "equal_depth",
  fill_colors = c(love_color(type = "lightnihon_6x1"), love_color(type = "deep"),
    love_color(type = "light"))
)

Arguments

dat

A data.frame with independent variables and target variable.

y

The name of target variable.

x

The name of an independent variable.

x_breaks

Breaks points of x.

g

Number of initial breakpoints for equal frequency binning.

string_bins

Whether to process bins of classification variables.

cut_bin

A string, if equal_bins is TRUE, 'equal_depth' or 'equal_width', default is 'equal_depth'.

fill_colors

colors of x.

Examples

plot_box(lendingclub, x = "grade", y = "installment", g = 7)

[Package creditmodel version 1.3.0 Index]