plot_class_roc | R Documentation |
Plots receiver-operating characteristic (ROC) plots for outcome classes. ROC metrics for particular classes are obtained in an one versus rest comparison.
plot_class_roc(
predx_object,
one_plot = FALSE,
palette = NULL,
line_size = 0.5,
point_size = 0.3,
plot_title = NULL,
plot_subtitle = NULL,
plot_tag = NULL,
show_annotation = TRUE,
annotation_size = 2.75,
annotation_x = 0.6,
annotation_y = 0.3,
annotation_offset = 0.1,
annotation_hjust = 0,
annotation_vjust = 1,
cust_theme = NULL,
...
)
predx_object |
a |
one_plot |
logical: should all ROC curves be presented in one plot? |
palette |
a character vector with color names of hex codes. If |
line_size |
width of the ROC curve lines. |
point_size |
size of the plot point. |
plot_title |
plot title. |
plot_subtitle |
plot subtitle. |
plot_tag |
plot tag. |
show_annotation |
logical: should sensitivity and specificity values be displayed in the plot? |
annotation_size |
size of the annotation text and of the cutoff label. |
annotation_x |
annotation x position. |
annotation_y |
annotation y position. |
annotation_offset |
line spacing in the annotation text.
Applies only if |
annotation_hjust |
horizontal justification of the annotation text. |
annotation_vjust |
horizontal justification of the annotation text. |
cust_theme |
custom |
... |
extra arguments passed to |
For regression, NULL is returned with a warning.
if one_plot = TRUE
a single ggplot
object. Otherwise,
a list of ggplot
objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.