Create an scatter plot using ROC curve points.
plot_roc_points(
data,
response = NULL,
predictor = NULL,
.condition = NULL,
.label = NULL
)A ggplot object.
A data.frame or extension (e.g. a tibble) containing values for predictors and response variables.
A data variable which must be a factor, integer or character vector representing the prediction outcome on each observation (Gold Standard).
If the variable presents more than two possible outcomes, classes or categories:
The outcome of interest (the one to be predicted) will remain distinct.
All other categories will be combined into a single category.
New combined category represents the "absence" of the condition to predict.
See .condition for more information.
A data variable which must be numeric, representing values of a classifier or predictor for each observation.
A value from response that represents class, category or condition of interest which wants to be predicted.
If NULL, condition of interest will be selected automatically depending on
response type.
Once the class of interest is selected, rest of them will be collapsed in a common category, representing the "absence" of the condition to be predicted.
See vignette("selecting-condition") for further information on how
automatic selection is performed and details on selecting the condition of
interest.
A string representing the name used in labels.
If NULL, variable name from predictor will be used as label.
plot_roc_points(iris, response = Species, predictor = Sepal.Width)
Run the code above in your browser using DataLab