mr.raps.scatterplot: Scatter plot with annotation

View source: R/plot.R

mr.raps.scatterplotR Documentation

Scatter plot with annotation

Description

Scatter plot with annotation

Usage

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
)

Arguments

data

A data frame (see mr.raps).

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 mr.raps fit.

Examples

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)



qingyuanzhao/mr.raps documentation built on June 4, 2022, 3:04 a.m.