forked from stefano-meschiari/latex2exp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.rmd
39 lines (32 loc) · 1.65 KB
/
README.rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: "LaTeX2Exp"
author: "Stefano Meschiari"
output:
md_document:
variant: gfm
---
```{r, setup, include=FALSE}
knitr::opts_chunk$set(fig.width=7, fig.height=5, fig.path = "man/figures/README-")
```
<!-- badges: start -->
[![R-CMD-check](https://github.com/stefano-meschiari/latex2exp/workflows/R-CMD-check/badge.svg)](https://github.com/stefano-meschiari/latex2exp/actions)
[![R-CMD-check](https://github.com/stefano-meschiari/latex2exp/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/stefano-meschiari/latex2exp/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
# latex2exp <img src="man/figures/logo.png" align="right">
**latex2exp** is an R package that lets you use LaTeX in plots. It parses and
converts LaTeX to R's custom [plotmath expressions](http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/plotmath.html).
You can read the full documentation on the [package's website](https://stefano-meschiari.github.io/latex2exp).
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:
```{r, eval=FALSE}
install.packages('latex2exp')
```
You can also install the development version from GitHub using [devtools](http://cran.r-project.org/web/packages/devtools/index.html):
```{r, eval=FALSE}
devtools::install_github('stefano-meschiari/latex2exp')
```
```{r, child='vignettes/using-latex2exp.Rmd'}
```
## Supported LaTeX commands
[Table of supported LaTeX](https://www.stefanom.io/latex2exp/articles/supported-commands.html)