plot.combined_bound: Plot the confidence envelope

View source: R/combined_bound.R

plot.combined_boundR Documentation

Plot the confidence envelope

Description

Draws the lower bound on the number of true discoveries among the k most significant hypotheses against k, with the line of slope 1 for reference.

Usage

## S3 method for class 'combined_bound'
plot(x, log = "",
     xlab = "Number of most significant hypotheses (k)",
     ylab = "True discoveries, at least", main = NULL, ...)

Arguments

x

a result of combined_bound.

log

passed to plot.default; for example "xy" for logarithmic axes, in which case values of k with a zero bound are left out.

xlab, ylab, main

axis labels and title.

...

further arguments passed to plot.default.

Value

x, invisibly.

See Also

ranked_bounds

Examples

set.seed(1)
z <- rnorm(2000, mean = c(rep(2, 300), rep(0, 1700)))
plot(combined_bound(z))

posthocbounds documentation built on Nov. 28, 2026, 1:08 a.m.