powered by
Given a cutpointr object this function plots the distribution(s) of the independent variable(s) and the respective cutpoints per class.
cutpointr
plot_x(x, display_cutpoint = TRUE, ...)
A cutpointr object.
(logical) Whether or not to display the optimal cutpoint as a vertical line.
Additional arguments (unused).
Other cutpointr plotting functions: plot.cutpointr, plot_cut_boot, plot_cutpointr, plot_metric_boot, plot_metric, plot_precision_recall, plot_roc, plot_sensitivity_specificity
plot.cutpointr
plot_cut_boot
plot_cutpointr
plot_metric_boot
plot_metric
plot_precision_recall
plot_roc
plot_sensitivity_specificity
# NOT RUN { opt_cut <- cutpointr(suicide, dsi, suicide) plot_x(opt_cut) ## With subgroup opt_cut_2groups <- cutpointr(suicide, dsi, suicide, gender) plot_x(opt_cut_2groups) # }
Run the code above in your browser using DataLab