knit_print.TnTBoard: Printing TnTBoard in Rmarkdown

knit_print.TnTBoardR Documentation

Printing TnTBoard in Rmarkdown

Description

S3 method to automatically render a TnTBoard with knitr.

Usage

## S3 method for class 'TnTBoard'
knit_print(x, ..., options = NULL)

Arguments

x

A TnTBoard or TnTGenome object.

..., options

Passed to htmlwidget:::knit_print.htmlwidget.

Value

htmlwidget:::knit_print.htmlwidget invisibly returns a character vector with "browsable_html" S3 class.

References

knit_print

Examples

track <- BlockTrack(GRanges("chr12", IRanges(c(100, 400, 700), width = 100)),
                    color = c("green", "red", "blue"))
tntboard <- TnTGenome(track)
## Not run: 
knitr::knit_print(tntboard)

## End(Not run)

Marlin-Na/TnT documentation built on Sept. 15, 2024, 5:27 a.m.