English

Rendering LaTeX in R

Other Statistics 2025-05-01 v1

Abstract

The xdvir package provides functions for rendering LaTeX fragments as labels, annotations, and data symbols in R plots. There are convenient high-level functions for rendering LaTeX fragments, including labels on ggplot2 plots, plus lower-level functions for more fine control over the separate authoring, typesetting, and rendering steps. There is support for making use of LaTeX packages, including TikZ graphics. The rendered LaTeX output is fully integrated with R graphics output in the sense that LaTeX output can be positioned and sized relative to R graphics output and vice versa.

Cite

@article{arxiv.2504.21566,
  title  = {Rendering LaTeX in R},
  author = {Paul Murrell},
  journal= {arXiv preprint arXiv:2504.21566},
  year   = {2025}
}

Comments

24 pages, 13 figures, submitted to The R Journal

R2 v1 2026-06-28T23:16:40.797Z