Description Usage Arguments Value Examples
This function is only provided for users who are familiar with the concept of htmlwidgets-package. It explicitly convets a TnTBoard or TnTGenome object to a htmlwidget object. You do not need it in most cases.
1 | trackWidget(tntdef, elementId = NULL)
|
tntdef |
A TnTBoard/TnTGenome object or a htmlwidget object. If it is a htmlwidget object, the function will return it as is. |
elementId |
An id for the htmlwidget (random by default). |
The function returns a htmlwidget object.
1 2 3 4 | b <- TnTBoard(BlockTrack(GRanges("chr12", IRanges(1, 123))))
widget <- trackWidget(b)
class(widget)
identical(widget, trackWidget(widget))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.