Description Usage Arguments Value See Also Examples
Plot LOD statistics calculated by mediation.scan
against
genomic positions. Display a gene name when hovering a mouse over.
1 |
med |
A mediation object |
symbol.col |
A column of |
chrlen |
A vector with chromosome lengths (as in |
Htmlwidget iplot
plot.mediation
, mediation.scan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(Tmem68)
med <- mediation.scan(target = Tmem68$target,
mediator = Tmem68$mediator,
annotation = Tmem68$annotation,
covar = Tmem68$covar,
qtl.geno = Tmem68$qtl.geno)
theme_set(theme_bw())
kplot(med, symbol.col="symbol")
# save the plot as HTML page
gp <- kplot(med, symbol.col="symbol")
pl <- ggplotly(gp, tooltip="text")
pl
tmpdir <- tempdir()
htmlwidgets::saveWidget(pl, paste0(tmpdir, "/Tmem68.html"),
selfcontained=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.