The mat2tex package was written to facilitate the combination of matrices and LaTeX code.
To install the mat2tex package from github enter
into the console. Windows users have to make sure that Rtools is installed.
mat2tex is a mini-language with several operators and functions to allow to combine LaTeX code and R objects. An introduction can be found in the package vignettes as well as here (http://markheckmann.github.io/mat2tex/).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.