plotMiami: Miami plot

View source: R/plotMiami.R

plotMiamiR Documentation

Miami plot

Description

Miami plot - WORK IN PROGRESS...

Usage

plotMiami(
  dat = NULL,
  hits = NULL,
  hitsName = hits,
  hitsLabel = TRUE,
  hitsColour = NULL,
  pMinFilter = 0.05,
  pMaxCap = 1/10^50,
  yRange = c(-50, 50),
  yRangeBy = 5,
  colP1 = c("green", "limegreen"),
  colP2 = c("lightblue", "blue"),
  title = c("My Main Title", "My Top Title", "My Bottom Title")
)

Arguments

dat

SNP association results, data.frame object with c("SNP","BP","P") columns. Required.

hits

SNP names to label in the plot. Must be present in assoc data.frame.

hitsName

alternative SNP names to label in the plot. Default same as 'hits'

hitsLabel

Default is TRUE, set to FALSE not to show SNP names on the plot.

hitsColour

Default NULL, uses ggplot colours.

yRange
yRangeBy

y-axis ticks, setting to 5 means ticks will be placed at 'c(0, 5, 10, ...)'.

title

character string for plot title. Default is NULL, i.e.: no plot title.

yMin, yMax

y-axis range limits.

Value

a ggplot object

Author(s)

Tokhir Dadaev, Edward J. Saunders


oncogenetics/oncofunco documentation built on March 9, 2024, 5:23 p.m.