Learn R Programming

cutpointr (version 1.1.2)

plot.cutpointr: Plot cutpointr objects

Description

The plot layout depends on whether subgroups were defined and whether bootstrapping was run.

Usage

# S3 method for cutpointr
plot(x, ...)

Arguments

x

A cutpointr object.

...

Further arguments.

Details

The ... argument can be used to apply ggplot2 functions to every individual plot, for example for changing the theme.

See Also

Other cutpointr plotting functions: plot_cut_boot(), plot_cutpointr(), plot_metric_boot(), plot_metric(), plot_precision_recall(), plot_roc(), plot_sensitivity_specificity(), plot_x()

Examples

Run this code
# NOT RUN {
opt_cut <- cutpointr(suicide, dsi, suicide, gender)
plot(opt_cut)
plot(opt_cut, ggplot2::theme_bw())
# }

Run the code above in your browser using DataLab