plot_table {creditmodel}R Documentation

plot_table

Description

plot_table is for table visualizaiton.

Usage

plot_table(
  grid_table,
  theme = c("cyan", "grey", "green", "red", "blue", "purple"),
  title = NULL,
  title.size = 12,
  title.color = "black",
  title.face = "bold",
  title.position = "middle",
  subtitle = NULL,
  subtitle.size = 8,
  subtitle.color = "black",
  subtitle.face = "plain",
  subtitle.position = "middle",
  tile.color = "white",
  tile.size = 1,
  colname.size = 3,
  colname.color = "white",
  colname.face = "bold",
  colname.fill.color = love_color("dark_cyan"),
  text.size = 3,
  text.color = love_color("dark_grey"),
  text.face = "plain",
  text.fill.color = c("white", love_color("pale_grey"))
)

Arguments

grid_table

A data.frame or table

theme

The theme of color, "cyan","grey","green","red","blue","purple" are available.

title

The title of table

title.size

The title size of plot.

title.color

The title color.

title.face

The title face, such as "plain", "bold".

title.position

The title position,such as "left","middle","right".

subtitle

The subtitle of table

subtitle.size

The subtitle size.

subtitle.color

The subtitle color.

subtitle.face

The subtitle face, such as "plain", "bold",default is "bold".

subtitle.position

The subtitle position,such as "left","middle","right", default is "middle".

tile.color

The color of table lines, default is 'white'.

tile.size

The size of table lines , default is 1.

colname.size

The size of colnames, default is 3.

colname.color

The color of colnames, default is 'white'.

colname.face

The face of colnames,default is 'bold'.

colname.fill.color

The fill color of colnames, default is love_color("dark_cyan").

text.size

The size of text, default is 3.

text.color

The color of text, default is love_color("dark_grey").

text.face

The face of text, default is 'plain'.

text.fill.color

The fill color of text, default is c('white',love_color("pale_grey").

Examples

iv_list = get_psi_iv_all(dat = UCICreditCard[1:1000, ],
                         x_list = names(UCICreditCard)[3:5], equal_bins = TRUE,
                         target = "default.payment.next.month", ex_cols = "ID|apply_date")
iv_dt =get_psi_iv(UCICreditCard, x = "PAY_3",
                  target = "default.payment.next.month", bins_total = TRUE)

plot_table(iv_dt)

[Package creditmodel version 1.3.0 Index]