Description Usage Arguments Details Value
Plot a column against a binary target.
1 2 3 4 5 |
dataset |
dataframe |
predictor |
numerical value |
binary_target |
a column that only has 0s and 1s. |
style |
Values are 'fixed','equal','quantile','pretty','percentile'. Default is EQUAL with n_breaks=10 |
n_breaks |
Default is 10. How many bins you want. |
fixed_breaks |
If style=FIXED then you want a vector of values such as seq(0,1000,100) |
return_as_1plot |
Default is TRUE. If TRUE, this returns a singple plot. Otherwise returns list of plots |
add_text |
Future work...add text to bar plots. |
default_bar_color |
TRUE or FALSE. Default is FALSE. This means plot comes out as black. If True then color is orange. |
include_response_rate. |
Default TRUE. Add the response rate plot to the capture rate plot |
higher_morelikely. |
Default is TRUE. Higher prediction value = more likely to be a 1. Needs to be set in order for gainslift to be sorted correctly. |
Generates Counts by Bin Style plot Cumulative plot Density Plot
Useful for understanding how a value relates to a target.
Returns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.