hist.FDX | R Documentation |
Computes a histogram of the raw p-values of a FDX
object.
## S3 method for class 'FDX' hist(x, breaks = "FD", main = NULL, xlab = NULL, ylab = NULL, plot = TRUE, ...)
x |
an object of class " |
breaks |
as in |
main |
main title. If |
xlab, ylab |
labels for x and y axis. |
plot |
a boolean If |
... |
further arguments to |
If x
contains results of a weighted approach, a histogram of the
weighted p-values is constructed. Otherwise, it is constituted by the
raw ones.
An object of class histogram
.
X1 <- c(4, 2, 2, 14, 6, 9, 4, 0, 1) X2 <- c(0, 0, 1, 3, 2, 1, 2, 2, 2) N1 <- rep(148, 9) N2 <- rep(132, 9) Y1 <- N1 - X1 Y2 <- N2 - X2 df <- data.frame(X1, Y1, X2, Y2) df # Construction of the p-values and their supports (fisher.pvalues.support # is from 'DiscreteFDR' package!) df.formatted <- fisher.pvalues.support(counts = df, input = "noassoc") raw.pvalues <- df.formatted$raw pCDFlist <- df.formatted$support DGR <- DGR(raw.pvalues, pCDFlist) hist(DGR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.