saveTnT: Save a TnTBoard to an HTML file

Description Usage Arguments Value Examples

Description

A simple wrapper of saveWidget, which saves a TnTBoard/TnTGenome object to an HTML file (e.g. for sharing with others).

Usage

1
2
3
4
5
6
7
8
saveTnT(
  tntdef,
  file,
  selfcontained = TRUE,
  libdir = NULL,
  background = "white",
  knitrOptions = list()
)

Arguments

tntdef

A TnTBoard/TnTGenome object to save.

file, selfcontained, libdir, background, knitrOptions

Passed to saveWidget.

Value

Return NULL.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data <- GRanges("chr2", IRanges(c(6,9,42), width = 1),
                value = c(0.3, 0.5, 0.9))
track <- PinTrack(data, label = NULL, background = "green")
genome <- TnTGenome(list(track))
destfile <- tempfile(fileext = ".html")
destfile
saveTnT(genome, destfile)
## Not run: 
utils::browseURL(destfile)

## End(Not run)

TnT documentation built on Nov. 8, 2020, 8:11 p.m.