Plot estimates from MRLocus slope fitting step

plotMrlocus(
  res,
  q = c(0.1, 0.9),
  sigma_mult = 1.28,
  label = "Effect size of",
  a = "eQTL",
  b = "GWAS",
  xlim = NULL,
  ylim = NULL,
  legend = TRUE,
  digits = 3,
  col_slope = "blue",
  col_band = rgb(0, 0, 1, 0.1),
  col_dashed = rgb(0, 0, 1, 0.5),
  ...
)

Arguments

res

the output from fitSlope

q

the quantiles of the posterior to use for drawing the uncertainty on the slope. The default is an 80 percent interval

sigma_mult

multiplier on estimate of sigma for drawing the dispersion band (e.g. qnorm(1 - .2/2) ~= 1.28 should include 80 percent of coefficient pairs)

label

what preceeds a and b in the x- and y-axis labels

a

name of A experiment

b

name of B experiment

xlim

xlim (if NULL will be set automatically)

ylim

ylim (if NULL will be set automatically)

legend

logical, whether to show a legend

digits

number of digits to show in legend

col_slope

the color of the slope (alpha)

col_band

the color of the band

col_dashed

the color of the dashed lines

...

arguments passed to plot