Plot Empirical Cumulative Distribution Function (ECDF) of p-values
plot_ecdf_pvalue(
p_values,
ks_test = TRUE,
signif = c(0.01, 0.05, 0.1),
discrepancy_tol = 0.1,
plot_uniform = TRUE,
uniform_legend = TRUE,
main = "",
ylab = "Empirical cumulative distribution",
xlab = "p-value",
...
)
No return value, called for side effects
vector of p-values
If TRUE
inserts Kolmogorov-Smirnov p-value in the graphic.
Points to verify discrepancy.
Threshold to consider point discrepant.
Logical. If TRUE, plot uniform distribution.
Logical. If TRUE, a legend is added to the plot to distinguish between the p-value and U(0, 1) curves. Defaults to TRUE.
main caption passed to plot
The label for the y-axis. Defaults to "Empirical cumulative distribution".
The label for the x-axis. Defaults to "p-value".
extra arguments passed to graphics::plot