plotLD: LocusExplorer - LD plot

View source: R/plotLD.R

plotLDR Documentation

LocusExplorer - LD plot

Description

LD plot for LocusExplorer.

Usage

plotLD(
  data = NULL,
  xStart = NULL,
  xEnd = NULL,
  hits = NULL,
  hitsName = hits,
  hitsColour = NULL,
  hitsLabel = TRUE,
  pad = TRUE,
  title = NULL
)

Arguments

data

plink LD output format, data.frame object with c("BP_A","SNP_A","BP_B","SNP_B","R2") columns.

xStart, xEnd

Region range, zoom, minimum BP and maximum BP, advised to keep this less than 5Mb.

hits

SNP names to label in the plot.

hitsName

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

hitsColour

Default NULL, uses ggplot colours.

pad

Default is TRUE, to align plots pad strings with spaces, using oncofunco::strPadLeft().

title

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

Value

a ggplot object

Author(s)

Tokhir Dadaev


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