| asplot | R Documentation |
Regional association plot
asplot(
locus,
map,
genes,
flanking = 1000,
best.pval = NULL,
sf = c(4, 4),
logpmax = 10,
pch = 21
)
locus |
Data frame with columns c("CHR", "POS", "NAME", "PVAL", "RSQR") containing association results. |
map |
Genetic map, i.e, c("POS","THETA","DIST"). |
genes |
Gene annotation with columns c("START", "STOP", "STRAND", "GENE"). |
flanking |
Flanking length. |
best.pval |
Best p value for the locus of interest. |
sf |
scale factors for p values and recombination rates, smaller values are necessary for gene dense regions. |
logpmax |
Maximum value for -log10(p). |
pch |
Plotting character for the SNPs to be highlighted, e.g., 21 and 23 refer to circle and diamond. |
This function obtains regional association plot for a particular locus, based on the information about recombinatino rates, linkage disequilibria between the SNP of interest and neighbouring ones, and single-point association tests p values.
Note that the best p value is not necessarily within locus in the original design.
Paul de Bakker, Jing Hua Zhao, Shengxu Li
saxena07gap
## Not run:
require(gap.datasets)
asplot(CDKNlocus, CDKNmap, CDKNgenes)
title("CDKN2A/CDKN2B Region")
asplot(CDKNlocus, CDKNmap, CDKNgenes, best.pval=5.4e-8, sf=c(3,6))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.