Description Usage Arguments Value See Also Examples
View source: R/binaryClassification.R
Produce a list of ggplots, showing the relationship between each predictor variable and a probability.
Given a data frame and a vector of probabilities, such as those produced by a binary classifier model, this function produces a list of ggplots, showing the relationship between each of the named variables and the probability.
It produces a violin plot for factors, a scatter plot with a loess fitted curve for numeric, and an error otherwise.
1 2 | binaryClassifierEffect(probs, df, var.names, max.n = 1000, display = FALSE,
log.names = NULL)
|
probs |
A vector of estimated probabilities, from 0 to 1. |
df |
A data frame containing variables that were used to predict some binary outcome. |
var.names |
A vector of column names from df. |
max.n |
The maximum number of points to include in the resulting scatter plots. |
display |
A logical, that determines is the resulting plots are displayed or just returned. |
log.names |
A vector of column names to plot in log scale |
A list of ggplot objects, suitable for printing or saving.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.