knitr::opts_chunk$set(fig.width=7, fig.height=5, fig.path = "man/figures/README-")

R-CMD-check R-CMD-check

latex2exp

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.

Installation

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')

Supported LaTeX commands

Table of supported LaTeX



stefano-meschiari/latex2exp documentation built on Jan. 27, 2023, 3:43 a.m.