plot_dataset: plot a coloc dataset

Description Usage Arguments Author(s)

View source: R/plot.R

Description

Plot a coloc structured dataset

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_dataset(
  d,
  susie_obj = NULL,
  alty = NULL,
  ylab = "-log10(p)",
  show_legend = TRUE,
  color = c("dodgerblue2", "green4", "#6A3D9A", "#FF7F00", "gold1", "skyblue2",
    "#FB9A99", "palegreen2", "#CAB2D6", "#FDBF6F", "gray70", "khaki2", "maroon",
    "orchid1", "deeppink1", "blue1", "steelblue4", "darkturquoise", "green1", "yellow4",
    "yellow3", "darkorange4", "brown"),
  ...
)

Arguments

d

a coloc dataset

susie_obj

optional, the output of a call to runsusie()

alty

default is to plot a standard manhattan. If you wish to plot a different y value, pass it here. You may also want to change ylab to describe what you are plotting.

ylab

label for y axis, default is -log10(p) and assumes you are plotting a manhattan

show_legend

optional, show the legend or not. default is TRUE

color

optional, specify the colours to use for each credible set when susie_obj is supplied. Default is shamelessly copied from susieR::susie_plot() so that colours will match

...

other arguments passed to the base graphics plot() function

Author(s)

Chris Wallace


chr1swallace/coloc documentation built on June 10, 2021, 8:38 p.m.