saveTnT | R Documentation |
A simple wrapper of saveWidget
, which saves a
TnTBoard/TnTGenome object to an HTML file (e.g. for sharing with others).
saveTnT(
tntdef,
file,
selfcontained = TRUE,
libdir = NULL,
background = "white",
knitrOptions = list()
)
tntdef |
A TnTBoard/TnTGenome object to save. |
file , selfcontained , libdir , background , knitrOptions |
Passed to |
Return NULL.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.