Learn R Programming

gap (version 1.5-1)

qtl2dplotly: 2D QTL plotly

Description

2D QTL plotly

Usage

qtl2dplotly(
  d,
  chrlen = gap::hg19,
  qtl.id = "SNPid:",
  qtl.prefix = "QTL:",
  qtl.gene = "Gene:",
  target.type = "Protein",
  TSS = FALSE,
  xlab = "QTL position",
  ylab = "Gene position",
  ...
)

Value

A plotly figure.

Arguments

d

Data in qtl2dplot() format.

chrlen

Lengths of chromosomes for specific build: hg18, hg19, hg38.

qtl.id

QTL id.

qtl.prefix

QTL prefix.

qtl.gene

QTL gene.

target.type

Type of target, e.g., protein.

TSS

to use TSS when TRUE.

xlab

X-axis title.

ylab

Y-axis title.

...

Additional arguments, e.g., target, log10p, to qtl2dplot.

Examples

Run this code
if (FALSE) {
INF <- Sys.getenv("INF")
d <- read.csv(file.path(INF,"work","INF1.merge.cis.vs.trans"),as.is=TRUE)
r <- qtl2dplotly(d)
htmlwidgets::saveWidget(r,file=file.path(INF,"INF1.qtl2dplotly.html"))
r
}

Run the code above in your browser using DataLab