plot_distribution {creditmodel} | R Documentation |

You can use the `plot_distribution_x`

to produce the distrbution plot of a variable.
You can use the `plot_distribution`

to produce the plots of distrbutions of all variables.

plot_distribution( dat, x_list = NULL, dir_path = tempdir(), breaks_list = NULL, g = 10, m = 3, cut_bin = "equal_width" ) plot_distribution_x( dat, x, breaks = NULL, g = 10, m = 3, cut_bin = "equal_width", binwidth = NULL )

`dat` |
A data.frame with independent variables and target variable. |

`x_list` |
Names of independent variables. |

`dir_path` |
The path for periodically saved graphic files. |

`breaks_list` |
A table containing a list of splitting points for each independent variable. Default is NULL. |

`g` |
Number of initial breakpoints for equal frequency binning. |

`m` |
The outlier cutoff. |

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

`x` |
The name of an independent variable. |

`breaks` |
Splitting points for an independent variable. Default is NULL. |

`binwidth` |
Windth of bins for histogram. |

plot_distribution_x(dat = lendingclub, x = "max_bal_bc", g = 10, cut_bin = 'equal_width') plot_distribution(dat = lendingclub, x_list = c("max_bal_bc", "installment"), g = 10,dir_path = tempdir(), cut_bin = 'equal_width')

[Package *creditmodel* version 1.3.0 Index]