mr.raps.scatterplot | R Documentation |
Scatter plot with annotation
mr.raps.scatterplot( data, annotate = TRUE, annotate.genes = NULL, rank.method = c("pval.both", "pval.selection", "pval.exposure"), num.snps = 10, fit = mr.raps(data, FALSE), alpha = 0.8 )
data |
A data frame (see |
annotate |
Annotating the points? (rsid, chromosome, position) |
annotate.genes |
Further annotation of closest genes? See example. |
rank.method |
How to select strongest SNPs for plot? |
num.snps |
How many SNPs are shown? |
fit |
A |
data(bmi.sbp) mr.raps.scatterplot(bmi.sbp) require(bumphunter) require(TxDb.Hsapiens.UCSC.hg38.knownGene) genes <- annotateTranscripts(TxDb.Hsapiens.UCSC.hg38.knownGene) mr.raps.scatterplot(bmi.sbp, annotate.genes = genes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.