blr_segment_dist | R Documentation |
Distribution of response variable by segements/levels of a qualitative variable.
blr_segment_dist(data, response, predictor)
## S3 method for class 'blr_segment_dist'
plot(
x,
title = NA,
xaxis_title = "Levels",
yaxis_title = "Sample Distribution",
sec_yaxis_title = "1s Distribution",
bar_color = "blue",
line_color = "red",
print_plot = TRUE,
...
)
data |
A |
response |
Response variable; column in |
predictor |
Predictor variable; column in |
x |
An object of class |
title |
Plot title. |
xaxis_title |
X axis title. |
yaxis_title |
Y axis title. |
sec_yaxis_title |
Secondary y axis title. |
bar_color |
Bar color. |
line_color |
Line color. |
print_plot |
logical; if |
... |
Other inputs. |
A tibble.
Other bivariate analysis procedures:
blr_bivariate_analysis()
,
blr_segment()
,
blr_segment_twoway()
,
blr_woe_iv()
,
blr_woe_iv_stats()
k <- blr_segment_dist(hsb2, honcomp, prog)
k
# plot
plot(k)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.