HTML tables are a standard way to display tabular information online. Getting HTML table data into R is fairly straightforward with the `` function of the tisch package.
wide format ggplot2 casting formula of the reshape2 package.
hierarchical table
library(tisch) tt <- tisch(mm, x1 + x2 ~ x3 + x4)
tt
After setting up the tisch object, it is time to convert it into At the moment, tisch only provides a converter for LaTeX documents.
to_tex()
function.
to_tex(tt)
caption()
, footnote()
and label()
tt <- tt + caption("asd") + footnote("asd") + label("tab:mm") to_tex(tt)
tt + theme() to_tex(tt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.