knitr::opts_chunk$set(fig.width=7, fig.height=5, fig.path = "man/figures/README-")
latex2exp is an R package that lets you use LaTeX in plots. It parses and converts LaTeX to R's custom plotmath expressions. You can read the full documentation on the package's website.
Expressions returned by latex2exp
can be used to create formatted text and mathematical formulas and symbols to be rendered as axis labels, annotations, legends, titles, etc. throughout R's plotting system.
Install this package from CRAN:
install.packages('latex2exp')
You can also install the development version from GitHub using devtools:
devtools::install_github('stefano-meschiari/latex2exp')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.