Description Usage Arguments Value Examples
View source: R/model_training.R
Buids a variable profile plot with optional cutoffs at a vector that differentiated categorical mappings
1 2 3 |
x |
predictor variable |
y |
response variable |
xlabel |
what to call your predictor |
ylabel |
what to call your response |
cutoffs |
an optional vector of cut points where a numeric variable becomes a continuous variable |
ggplot2 object
1 2 | plot_predict_var(mtcars, "wt", "mpg", "weight", "miles per gallon")
plot_predict_var(mtcars, "hp", "mpg", "horsepower", "miles per gallon", cutoffs = c(80, 135, 200))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.