plotSNPtype: LocusExplorer - SNP type plot

View source: R/plotSNPtype.R

plotSNPtypeR Documentation

LocusExplorer - SNP type plot

Description

SNP type plot for LocusExplorer.

Usage

plotSNPtype(
  assoc = NULL,
  xStart = NULL,
  xEnd = NULL,
  pad = TRUE,
  title = NULL,
  typedColName = "TYPED",
  typedValue = 2,
  colTyped = "#003333",
  colImputed = "#669999"
)

Arguments

assoc

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

xStart, xEnd

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

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.

typedColName

Column name in assoc data.frame to indicate typed/imputed SNPs, default "TYPED".

typedValue

Value for typed SNPs, default is 2.

colTyped

Colour for typed SNPs, default "#003333".

colImputed

Colour for imputed SNPs, default "#669999".

Value

a ggplot object

Author(s)

Tokhir Dadaev


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