Description Usage Arguments Value Note Source See Also Examples
An object of class qq includes all the needed information for producing a
quantile-quantile plot of p-values. The goal is to seperate the
pre-processing of the quantile-quantile plot elements from the graphical
rendaring of the object, which could be done using any graphical device
including plot_ly
and plot
in
base R
.
1 |
x |
A
|
p |
A string denoting the column name for the p-values. Default is
|
snp |
A string denoting the column name for the SNP names (e.g. rs
number). More generally, this column could be anything that identifies each
point being plotted. For example, in an Epigenomewide association study
(EWAS) this could be the probe name or cg number. This column should be a
|
gene |
A string denoting the column name for the GENE names. This column
could be a |
annotation1 |
A string denoting the column name for an annotation. This
column could be a |
annotation2 |
A string denoting the column name for an annotation. This
column could be a |
... |
currently ignored |
An list object of class qqr
with the following elements
processed data to be used for plotting the Q-Q plot including the observed and expected p-values on the -log10 scale
The names
of the columns corresponding to the data provided. This information is used
for annotating the plot in the qqly
function
This function will return an error if any of the p-values are NA, less than 0 or greater than 1
The calculation of the expected p-value is taken from the
qq function from the
qqman
package
1 2 3 4 | library(manhattanly)
qqrObj <- qqr(HapMap, snp = "SNP", highlight = significantSNP)
class(qqrObj)
head(qqrObj[["data"]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.