Description Usage Arguments Value Examples
Plot the ratio of categories of target labels inside different bins created based on quantiles for numeric features
1 | qtile_plot(data, x_feat, y_feat, quantile = 4)
|
data |
Name of the data frame object |
x_feat |
Name of the predictor of the interest |
y_feat |
Name of the target feature |
quantile |
Number of quantiles to be used to bin the numeric feature |
Returns three outputs:
Quantile boundaries,
Total records in each quantiles based bin,
A line plot showing ratio in different bins. The output of the function can be passed to plotly to generate interactive plot
1 2 | library(tidyverse)
qtile_plot(iris, Sepal.Length, Species, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.