powered by
You can use the plot_box to produce boxplot.
plot_box
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")) )
A data.frame with independent variables and target variable.
The name of target variable.
The name of an independent variable.
Breaks points of x.
Number of initial breakpoints for equal frequency binning.
Whether to process bins of classification variables.
A string, if equal_bins is TRUE, 'equal_depth' or 'equal_width', default is 'equal_depth'.
colors of x.
# NOT RUN { plot_box(lendingclub, x = "grade", y = "installment", g = 7) # }
Run the code above in your browser using DataLab