plotpval | R Documentation |
Plot lines connecting the the -log10 of pvalues for a series of tests
plotpval(pos, pmat, lty=1, lwd=1, col=1, title="", legend, xlab="Position(cM)", ylab="-log10(pvalue)")
pos |
an index for the series of tests, usually assuming adjacent tests are correlated. |
pmat |
matrix of p-values, each column represents a different test, rows correspond to the pos[ition] index |
lty |
line type, see par() |
lwd |
line width, see par() |
col |
line color, see par() |
title |
title for the top-center of the plot |
legend |
vector of text strings explaning the tests in each column of pmat |
xlab |
x axis label |
ylab |
y axis label |
The default height for the y-axis is 3, which corresponds to a p-value of 1e-3. If any p-value is smaller, the height is -log10 of the smallest p-value in pmat.
nothing is returned
none
par
,
title
,
legend
plotpval(pos=1:10, pmat=cbind(runif(10)/5, runif(10)/10), lty=c(1,2), col=c(1,2), legend=c("runif/5", "runif/10"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.