Learn R Programming

wmwAUC (version 0.2.0)

plot.wmw_test: Plot Method for wmw_test Objects

Description

Creates empirical ROC curve plot with test results (p-value, eAUC with confidence interval) displayed in subtitle. If ci_method = 'boot' was used in wmw_test(), the plot includes confidence bands for the ROC curve constructed using the same bootstrap resamples used for the AUC confidence interval.

Usage

# S3 method for wmw_test
plot(x, combine_plots = TRUE, ...)

Value

No return value, called for side effects. Creates a plot visualizing the Wilcoxon-Mann-Whitney test results including distributions, test statistic, and confidence information.

Arguments

x

Object of class 'wmw_test' returned by wmw_test()

combine_plots

Logical, whether to return combined plot using patchwork (TRUE) or list of individual plots (FALSE). Only relevant when special_case = TRUE

...

Additional arguments (not currently used)

Details

When special_case = TRUE was used in wmw_test(), an additional boxplot with swarmplot overlay is created, showing the eAUC as effect size estimate with confidence interval in the subtitle (demonstrating the dual interpretation of eAUC in the location-shift case).